Skip to content

Commit

Permalink
docs: fix column bar demo label layout (#1962)
Browse files Browse the repository at this point in the history
  • Loading branch information
lessmost authored Nov 20, 2020
1 parent c8d5193 commit 909665a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/bar/grouped/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const stackedBarPlot = new Bar('container', {
layout: [
// 柱形图数据标签位置自动调整
{ type: 'interval-adjust-position' },
// 数据标签防遮挡
{ type: 'interval-hide-overlap' },
// 数据标签文颜色自动调整
{ type: 'adjust-color' },
],
Expand Down
2 changes: 2 additions & 0 deletions examples/bar/stacked/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ const stackedBarPlot = new Bar('container', {
layout: [
// 柱形图数据标签位置自动调整
{ type: 'interval-adjust-position' },
// 数据标签防遮挡
{ type: 'interval-hide-overlap' },
// 数据标签文颜色自动调整
{ type: 'adjust-color' },
],
Expand Down
2 changes: 2 additions & 0 deletions examples/column/grouped/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ const stackedColumnPlot = new Column('container', {
layout: [
// 柱形图数据标签位置自动调整
{ type: 'interval-adjust-position' },
// 数据标签防遮挡
{ type: 'interval-hide-overlap' },
// 数据标签文颜色自动调整
{ type: 'adjust-color' },
],
Expand Down
2 changes: 2 additions & 0 deletions examples/column/stacked/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ const stackedColumnPlot = new Column('container', {
layout: [
// 柱形图数据标签位置自动调整
{ type: 'interval-adjust-position' },
// 数据标签防遮挡
{ type: 'interval-hide-overlap' },
// 数据标签文颜色自动调整
{ type: 'adjust-color' },
],
Expand Down

0 comments on commit 909665a

Please sign in to comment.