echarts
echarts copied to clipboard
Colours depending on value
One-line summary [问题简述]
Any way we can assign colours to the charts series (i.e bars) depending on the value of the data?
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]: 3.6.2
- Browser version [浏览器类型和版本]: Edge, Chrome
- OS Version [操作系统类型和版本]: Windows 10
Expected behaviour [期望结果]
Example:

In this case a gradient of colours but also considering something predefined like what happens in the gauge:
series: [{
axisLine: {
show: true,
lineStyle: {
color: [
[0.25, 'red'],
[0.75, 'orange'],
[1, 'green']
],
ECharts option [ECharts配置项]
option = {
}
Other comments [其他信息]
@LMJS1974 Hi Did you got a solution for this issue?