You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/01/19 10:43:47 UTC

[GitHub] [echarts-doc] Ovilia commented on a change in pull request #217: doc anout series-gauge.axisLine.lineStyle.color

Ovilia commented on a change in pull request #217:
URL: https://github.com/apache/echarts-doc/pull/217#discussion_r787614189



##########
File path: en/option/series/gauge.md
##########
@@ -126,6 +126,16 @@ Default value:
 [[1, '#E6EBF8']]
 ```
 
+Note: The value of `color[i][0]` means the percentage of the axis line of gauge chart's segments.
+
+```js
+color: [
+    [0.1, 'red'], // 10% red segments
+    [2, 'green'], // rest percent green segments

Review comment:
       We should not encourage users to set percentage larger than 1. The blue color in your case doesn't work not because 10 is larger than 1, but because its previous percentage, 2, is larger than 1. So perhaps it is better to tell users the percentage can be between 0 and 1. That should be enough.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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