This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new e3d50a6a fix(#294): default value for label rotate shouldn't be fixed
and add missing version tip for `axisLabel.rotate` for gauge series.
e3d50a6a is described below
commit e3d50a6a8f963e01afdcfec3a9028640993343bc
Author: plainheart <[email protected]>
AuthorDate: Fri Sep 23 16:00:07 2022 +0800
fix(#294): default value for label rotate shouldn't be fixed and add
missing version tip for `axisLabel.rotate` for gauge series.
---
en/option/partial/label-rotate-tangential.md | 10 ++++++++--
en/option/series/gauge.md | 3 ++-
en/option/series/sunburst.md | 3 ++-
zh/option/partial/label-rotate-tangential.md | 10 ++++++++--
zh/option/series/gauge.md | 3 ++-
zh/option/series/sunburst.md | 3 ++-
6 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/en/option/partial/label-rotate-tangential.md
b/en/option/partial/label-rotate-tangential.md
index b0a29d3a..de724351 100644
--- a/en/option/partial/label-rotate-tangential.md
+++ b/en/option/partial/label-rotate-tangential.md
@@ -1,9 +1,15 @@
{{ target: partial-label-rotate-tangential }}
-#${prefix} rotate(string|number) = 'radial'
+#${prefix} rotate(string|number) = ${defaultRotate}
+
+{{ if: ${version} }}
+{{ use: partial-version(
+ version = ${version}
+) }}
+{{ /if }}
If it is `number` type, then is stands for rotation, from -90 degrees to 90
degrees, and positive values stand for counterclockwise.
Besides, it can be string `'radial'`, standing for radial rotation; or
`'tangential'`, standing for tangential rotation.
-By default, it is `'radial'`. If no rotation is wanted, it can be set to `0`.
+If no rotation is wanted, it can be set to `0`.
\ No newline at end of file
diff --git a/en/option/series/gauge.md b/en/option/series/gauge.md
index faa9fbdb..6dfe0c67 100644
--- a/en/option/series/gauge.md
+++ b/en/option/series/gauge.md
@@ -280,7 +280,8 @@ Whether to show the label.
The distance between the label and tick line.
{{ use: partial-label-rotate-tangential(
- prefix = '##'
+ prefix = '##',
+ version = '5.4.0'
) }}
### formatter(string|Function)
diff --git a/en/option/series/sunburst.md b/en/option/series/sunburst.md
index 822404d5..4eda6509 100644
--- a/en/option/series/sunburst.md
+++ b/en/option/series/sunburst.md
@@ -2,7 +2,8 @@
{{ target: partial-sunburst-label-helper }}
{{ use: partial-label-rotate-tangential(
- prefix = ${prefix}
+ prefix = ${prefix},
+ defaultRotate = "'radial'"
) }}
The following example shows different `rotate` settings:
diff --git a/zh/option/partial/label-rotate-tangential.md
b/zh/option/partial/label-rotate-tangential.md
index 3d245c24..3776d6f7 100644
--- a/zh/option/partial/label-rotate-tangential.md
+++ b/zh/option/partial/label-rotate-tangential.md
@@ -1,9 +1,15 @@
{{ target: partial-label-rotate-tangential }}
-#${prefix} rotate(string|number) = 'radial'
+#${prefix} rotate(string|number) = ${defaultRotate}
+
+{{ if: ${version} }}
+{{ use: partial-version(
+ version = ${version}
+) }}
+{{ /if }}
如果是 `number` 类型,则表示标签的旋转角,从 -90 度到 90 度,正值是逆时针。
除此之外,还可以是字符串 `'radial'` 表示径向旋转、`'tangential'` 表示切向旋转。
-默认径向旋转,如果不需要文字旋转,可以将其设为 `0`。
+如果不需要文字旋转,可以将其设为 `0`。
diff --git a/zh/option/series/gauge.md b/zh/option/series/gauge.md
index 29622795..186d505b 100644
--- a/zh/option/series/gauge.md
+++ b/zh/option/series/gauge.md
@@ -293,7 +293,8 @@ color: [
标签与刻度线的距离。
{{ use: partial-label-rotate-tangential(
- prefix = '##'
+ prefix = '##',
+ version = '5.4.0'
) }}
### formatter(string|Function)
diff --git a/zh/option/series/sunburst.md b/zh/option/series/sunburst.md
index ab5d461e..b0064d09 100644
--- a/zh/option/series/sunburst.md
+++ b/zh/option/series/sunburst.md
@@ -2,7 +2,8 @@
{{ target: partial-sunburst-label-helper }}
{{ use: partial-label-rotate-tangential(
- prefix = ${prefix}
+ prefix = ${prefix},
+ defaultRotate = "'radial'"
) }}
下面的例子展示了不同的 `rotate` 设置方法:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]