Skip to content

Commit 8910092

Browse files
committed
docs: fix common chart option labelLayout
1 parent 66c7766 commit 8910092

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/assets/option/en/common/chart-spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ color: ['#BBD6B8', '#EA5455', '#19A7CE'],
8787
prefix = '#' + ${prefix},
8888
includeId = false
8989
) }}
90+
91+
#${prefix} labelLayout(string)='series'
92+
93+
By default, it is laid out separately by series, and can be set to 'series' or 'region'. When set to `region`, the label of different series in the same region will be calculated together to prevent overlap.

docs/assets/option/zh/common/chart-spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ color: ['#BBD6B8', '#EA5455', '#19A7CE'],
8787
prefix = '#' + ${prefix},
8888
includeId = false
8989
) }}
90+
91+
#${prefix} labelLayout(string)='series'
92+
93+
标签布局方式。默认按照系列单独布局,可设置为'series' 或 'region'。当设置为 region 时,相同 region 的系列标签会共同进行防重叠计算。

0 commit comments

Comments
 (0)