From 30eee9463a1d5320455898b011a9156883df8ce4 Mon Sep 17 00:00:00 2001 From: quao Date: Thu, 16 Oct 2025 22:47:57 +0800 Subject: [PATCH] =?UTF-8?q?feat=20x,y=E8=BD=B4=E6=B7=BB=E5=8A=A0includeMar?= =?UTF-8?q?kerInExtent=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/option/component/x-axis.md | 10 ++++++++++ en/option/component/y-axis.md | 10 ++++++++++ zh/option/component/x-axis.md | 10 ++++++++++ zh/option/component/y-axis.md | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/en/option/component/x-axis.md b/en/option/component/x-axis.md index ec958710..97596410 100644 --- a/en/option/component/x-axis.md +++ b/en/option/component/x-axis.md @@ -47,6 +47,16 @@ Notice: Set `xAxis.axisLine.onZero` to `false` to activate this option. Offset of x axis relative to default position. Useful when multiple x axis has same [position](~xAxis.position) value. Notice: Set `xAxis.axisLine.onZero` to `false` to activate this option. +## includeMarkerInExtent(boolean) = true + + + +{{ use: partial-version(version = "6.0.1") }} + +Whether to include markers (markPoint, markLine, markArea) in the default axis extent calculation. + +By default or when set to `true`, the axis extent calculation will consider the positions of markers, ensuring that markers are visible within the axis range. When set to `false`, marker values are not considered when calculating the default axis range. + {{ use: axis-common( prefix = '#', componentType = 'xAxis', diff --git a/en/option/component/y-axis.md b/en/option/component/y-axis.md index 11e6a5e8..1e8c268a 100644 --- a/en/option/component/y-axis.md +++ b/en/option/component/y-axis.md @@ -47,6 +47,16 @@ Notice: Set `yAxis.axisLine.onZero` to `false` to activate this option. Offset of y axis relative to default position. Useful when multiple y axis has same [position](~yAxis.position) value. Notice: Set `yAxis.axisLine.onZero` to `false` to activate this option. +## includeMarkerInExtent(boolean) = true + + + +{{ use: partial-version(version = "6.0.1") }} + +Whether to include markers (markPoint, markLine, markArea) in the default axis extent calculation. + +By default or when set to `true`, the axis extent calculation will consider the positions of markers, ensuring that markers are visible within the axis range. When set to `false`, marker values are not considered when calculating the default axis range. + {{ use: axis-common( prefix = '#', componentType = 'yAxis', diff --git a/zh/option/component/x-axis.md b/zh/option/component/x-axis.md index 26aa8125..ead12b45 100644 --- a/zh/option/component/x-axis.md +++ b/zh/option/component/x-axis.md @@ -82,6 +82,16 @@ x 轴的位置。 X 轴相对于默认位置的偏移,在相同的 `position` 上有多个 X 轴的时候有用。注:若未将 `xAxis.axisLine.onZero` 设为 `false` , 则该项无法生效。 +## includeMarkerInExtent(boolean) = true + + + +{{ use: partial-version(version = "6.0.1") }} + +是否在坐标轴默认范围计算时包含标记(markPoint、markLine、markArea)。 + +默认条件下或设置为 `true` 时坐标轴的范围计算会考虑标记的位置,确保标记在坐标轴范围内可见。当设置 `false`时,计算默认轴范围时则不考虑标记的数值。 + {{ use: axis-common( prefix = '#', componentType = 'xAxis', diff --git a/zh/option/component/y-axis.md b/zh/option/component/y-axis.md index 54e533dd..291ee24c 100644 --- a/zh/option/component/y-axis.md +++ b/zh/option/component/y-axis.md @@ -128,6 +128,16 @@ Y 轴相对于默认位置的偏移,在相同的 `position` 上有多个 Y 轴 需要配合其他配置项共同实现动态排序柱状图效果,具体参见[动态排序柱状图](${handbookPath}how-to/chart-types/bar/bar-race)教程。 +## includeMarkerInExtent(boolean) = true + + + +{{ use: partial-version(version = "6.0.1") }} + +是否在坐标轴默认范围计算时包含标记(markPoint、markLine、markArea)。 + +默认条件下或设置为 `true` 时坐标轴的范围计算会考虑标记的位置,确保标记在坐标轴范围内可见。当设置 `false`时,计算默认轴范围时则不考虑标记的数值。 + {{ use: axis-common( prefix = '#', componentType = 'yAxis',