From 89100921eb02c82d82d1ac8f86891e9f7e544f06 Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Fri, 21 Nov 2025 19:05:54 +0800 Subject: [PATCH 1/2] docs: fix common chart option labelLayout --- docs/assets/option/en/common/chart-spec.md | 4 ++++ docs/assets/option/zh/common/chart-spec.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/assets/option/en/common/chart-spec.md b/docs/assets/option/en/common/chart-spec.md index 6759c693f6..16d00d6732 100644 --- a/docs/assets/option/en/common/chart-spec.md +++ b/docs/assets/option/en/common/chart-spec.md @@ -87,3 +87,7 @@ color: ['#BBD6B8', '#EA5455', '#19A7CE'], prefix = '#' + ${prefix}, includeId = false ) }} + +#${prefix} labelLayout(string)='series' + +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. diff --git a/docs/assets/option/zh/common/chart-spec.md b/docs/assets/option/zh/common/chart-spec.md index 5a7119b75f..c768470672 100644 --- a/docs/assets/option/zh/common/chart-spec.md +++ b/docs/assets/option/zh/common/chart-spec.md @@ -87,3 +87,7 @@ color: ['#BBD6B8', '#EA5455', '#19A7CE'], prefix = '#' + ${prefix}, includeId = false ) }} + +#${prefix} labelLayout(string)='series' + +标签布局方式。默认按照系列单独布局,可设置为'series' 或 'region'。当设置为 region 时,相同 region 的系列标签会共同进行防重叠计算。 From 0901ccab263cfc840a7316b80e9ff7f86353244e Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Fri, 21 Nov 2025 19:08:37 +0800 Subject: [PATCH 2/2] docs: fix common chart option labelLayout --- docs/assets/option/en/chart/common.md | 4 ---- docs/assets/option/zh/chart/common.md | 4 ---- 2 files changed, 8 deletions(-) diff --git a/docs/assets/option/en/chart/common.md b/docs/assets/option/en/chart/common.md index 219cd4212f..296cc98e7b 100644 --- a/docs/assets/option/en/chart/common.md +++ b/docs/assets/option/en/chart/common.md @@ -258,7 +258,3 @@ Whether to enable automatic bandSize. If enabled, the bandSize will be automatic ### extend(number) The expansion value added after calculating the bandSize based on barWidth to fix the overall length of the axis. The unit is px. - -## labelLayout(string)='series' - -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. diff --git a/docs/assets/option/zh/chart/common.md b/docs/assets/option/zh/chart/common.md index 106beb426c..c6809d911c 100644 --- a/docs/assets/option/zh/chart/common.md +++ b/docs/assets/option/zh/chart/common.md @@ -202,7 +202,3 @@ IGaugePointerSeriesSpec--> ### extend(number) 根据 barWidth 计算出 bandSize,从而固定轴整体长度之后,添加的扩增值。单位为 px。 - -## labelLayout(string)='series' - -标签布局方式。默认按照系列单独布局,可设置为'series' 或 'region'。当设置为 region 时,相同 region 的系列标签会共同进行防重叠计算。