googirle commented on issue #17222:
URL: https://github.com/apache/echarts/issues/17222#issuecomment-1158471133
@jiawulin001
For example a histogram, I want the label of each column to be red when the
number of it is greater than 10 and be blue when less than 5, otherwise gray.
Just like the second chart above.
I think the option should be like
```js
option = {
series: [{
label: {
color: (value, index) => return value >= 10 ? 'red' : value <= 5 ?
'blue' : 'gray'
}
}]
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]