Skip to content

Commit d7a2e8f

Browse files
committed
docs: fix column bar demo label layout
1 parent c8d5193 commit d7a2e8f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

examples/bar/grouped/demo/basic.ts

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const stackedBarPlot = new Bar('container', {
6969
layout: [
7070
// 柱形图数据标签位置自动调整
7171
{ type: 'interval-adjust-position' },
72+
// 数据标签防遮挡
73+
{ type: 'interval-hide-overlap' },
7274
// 数据标签文颜色自动调整
7375
{ type: 'adjust-color' },
7476
],

examples/bar/stacked/demo/basic.ts

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const stackedBarPlot = new Bar('container', {
106106
layout: [
107107
// 柱形图数据标签位置自动调整
108108
{ type: 'interval-adjust-position' },
109+
// 数据标签防遮挡
110+
{ type: 'interval-hide-overlap' },
109111
// 数据标签文颜色自动调整
110112
{ type: 'adjust-color' },
111113
],

examples/column/grouped/demo/basic.ts

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ const stackedColumnPlot = new Column('container', {
100100
layout: [
101101
// 柱形图数据标签位置自动调整
102102
{ type: 'interval-adjust-position' },
103+
// 数据标签防遮挡
104+
{ type: 'interval-hide-overlap' },
103105
// 数据标签文颜色自动调整
104106
{ type: 'adjust-color' },
105107
],

examples/column/stacked/demo/basic.ts

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const stackedColumnPlot = new Column('container', {
106106
layout: [
107107
// 柱形图数据标签位置自动调整
108108
{ type: 'interval-adjust-position' },
109+
// 数据标签防遮挡
110+
{ type: 'interval-hide-overlap' },
109111
// 数据标签文颜色自动调整
110112
{ type: 'adjust-color' },
111113
],

0 commit comments

Comments
 (0)