This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch Rain120-doc/gauge-color
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git

commit 32992975dd228815534a20684e7571e7c98e7488
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Thu Jan 20 10:30:53 2022 +0800

    doc: update gauge lineStyle color explanation
---
 en/option/series/gauge.md | 9 ++++-----
 zh/option/series/gauge.md | 9 ++++-----
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/en/option/series/gauge.md b/en/option/series/gauge.md
index 13bd0be..8356d11 100644
--- a/en/option/series/gauge.md
+++ b/en/option/series/gauge.md
@@ -126,13 +126,13 @@ Default value:
 [[1, '#E6EBF8']]
 ```
 
-Note: The value of `color[i][0]` means the percentage of the axis line of 
gauge chart's segments. Recommend value between 0 then 1, The value in `(0, 1]` 
will be valuable.
+Note: The value of `color[i][0]` means the percentage of the axis line of the 
gauge chart's segments, which should be between 0 and 1, and `color[i][1]` is 
the corresponding color.
 
 ```js
 color: [
-    [0.1, 'red'], // 10% red segments
-    [0.2, 'green'], // 20% green segments
-    [0.3, 'blue'], // 30% blue segments
+    [0.1, 'red'], // 0~10% is red
+    [0.2, 'green'], // 10~20% is green
+    [0.3, 'blue'], // 20~30% is blue
     // ...
 ]
 ```
@@ -587,4 +587,3 @@ formatter: function (value) {
     return value.toFixed(0);
 }
 ```
-
diff --git a/zh/option/series/gauge.md b/zh/option/series/gauge.md
index b0e1c4d..09d9526 100644
--- a/zh/option/series/gauge.md
+++ b/zh/option/series/gauge.md
@@ -137,13 +137,13 @@ const option = {
 [[1, '#E6EBF8']]
 ```
 
-注意: `color[i][0]` 的值代表整根轴线的百分比,建议值在 `(0, 1]`,这样的值算是有效值
+注意: `color[i][0]` 的值代表整根轴线的百分比,应在 0 到 1 之间;`color[i][1]` 是对应的颜色。
 
 ```js
 color: [
-    [0.1, 'red'], // 10% 红轴线
-    [0.2, 'green'], // 20% 绿轴线
-    [0.3, 'blue'], // 30% 蓝轴线
+    [0.1, 'red'], // 0~10% 红轴
+    [0.2, 'green'], // 10~20% 绿轴
+    [0.3, 'blue'], // 20~30% 蓝轴
     // ...
 ]
 ```
@@ -598,4 +598,3 @@ formatter: function (value) {
     return value.toFixed(0);
 }
 ```
-

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to