You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2025/06/30 04:26:09 UTC
(echarts-doc) branch dev updated: add since version and revert containLabel doc.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/dev by this push:
new 824ca6e1 add since version and revert containLabel doc.
824ca6e1 is described below
commit 824ca6e133ea054651b0944e574b30d188400cb2
Author: 100pah <su...@gmail.com>
AuthorDate: Mon Jun 30 12:25:59 2025 +0800
add since version and revert containLabel doc.
---
en/option/component/axis-common.md | 2 ++
en/option/component/grid.md | 6 +++---
zh/option/component/axis-common.md | 2 ++
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md
index b5c0006f..49c1cb3f 100644
--- a/en/option/component/axis-common.md
+++ b/en/option/component/axis-common.md
@@ -27,6 +27,8 @@ Parameters of the event include:
#${prefix} jitter(number) = 0
+{{ use: partial-version(version = "6.0.0") }}
+
To prevent data points from overlapping in scatter plots, a small amount of random noise is added to the positions of the data points. This helps to visualize the distribution of the data more clearly. It is only applicable to scatter plots and is effective only in single-axis or category axes in Cartesian coordinate systems. The unit is in pixels.
~[600x400](${galleryViewPath}scatter-jitter&edit=1&reset=1)
diff --git a/en/option/component/grid.md b/en/option/component/grid.md
index 8201da62..6e9134e3 100644
--- a/en/option/component/grid.md
+++ b/en/option/component/grid.md
@@ -33,14 +33,14 @@ Whether to show the grid in rectangular coordinate.
<ExampleUIControlBoolean default="false" />
-Whether the grid region contains [axis tick label](~yAxis.axisLabel) and [axis name](~yAxis.name) of axis.
+Whether the grid region contains [axis tick label](~yAxis.axisLabel).
+ When containLabel is `false`:
+ `grid.left` `grid.right` `grid.top` `grid.bottom` `grid.width` `grid.height` decide the location and size of the rectangle that is made of by xAxis and yAxis.
+ Setting to `false` will help when multiple grids need to be aligned at their axes.
+ When containLabel is `true`:
- + `grid.left` `grid.right` `grid.top` `grid.bottom` `grid.width` `grid.height` decide the location and size of the rectangle that contains the axes, and the labels and the names of the axes.
- + Setting to `true` will help when the length of axis labels is dynamic and is hard to approximate. This will avoid labels and names from overflowing the container or overlapping other components.
+ + `grid.left` `grid.right` `grid.top` `grid.bottom` `grid.width` `grid.height` decide the location and size of the rectangle that contains the axes, and the labels of the axes.
+ + Setting to `true` will help when the length of axis labels is dynamic and is hard to approximate. This will avoid labels from overflowing the container or overlapping other components.
{{ use: partial-component-common-style(
componentName = "grid",
diff --git a/zh/option/component/axis-common.md b/zh/option/component/axis-common.md
index eef6f74f..83ab1eff 100644
--- a/zh/option/component/axis-common.md
+++ b/zh/option/component/axis-common.md
@@ -25,6 +25,8 @@
#${prefix} jitter(number) = 0
+{{ use: partial-version(version = "6.0.0") }}
+
用于在散点图中防止数据点重叠,通过在数据点的位置上添加少量随机噪音来实现,可以帮助更清晰地可视化数据的分布。仅适用于散点图,且仅在单轴或笛卡尔坐标系下的类目轴中有效。单位是像素。
~[600x400](${galleryViewPath}scatter-jitter&edit=1&reset=1)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org