x-strong commented on issue #13657: URL: https://github.com/apache/echarts/issues/13657#issuecomment-1161148458
> Hi. What series type are you using? It shouldn't use "random" color by default. It is not 'random' color, it is meaningful color as I described before. And here is an example: https://echarts.apache.org/examples/en/editor.html?c=bar-y-category&lang=js&version=5.0.1 ```js itemStyle:{ color: (params)=> { if(params.value > 30000) { return 'red'; }else if( params.value < 30000) { return 'green'; } } } ```  As far as I know, all echarts versions support customizing item style color, even custom function that returns colors conditionally. The [official document](https://echarts.apache.org/en/option.html#color) do not mention that the `Color` option support for custom function, Why? In fact it supports. @Ovilia Did you forget to review this issue? -- 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]
