echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Colours depending on value

Open LMJS1974 opened this issue 9 years ago • 1 comments

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:

image

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 avatar Aug 09 '17 18:08 LMJS1974

@LMJS1974 Hi Did you got a solution for this issue?

el7lme avatar Jun 11 '18 12:06 el7lme