4.2版本还支持这么写,不知道从哪个版本开始,不支持这种写法了
this.option.series[0].color = function(p) {
return 'rgb(0,255,0)' // 绿色
}
需要改成:
this.option.series[0].itemStyle = {
normal: {
color: function(p) {
return 'rgb(0,255,0)' // 绿色
}
}
}
4.2版本还支持这么写,不知道从哪个版本开始,不支持这种写法了
this.option.series[0].color = function(p) {
return 'rgb(0,255,0)' // 绿色
}
需要改成:
this.option.series[0].itemStyle = {
normal: {
color: function(p) {
return 'rgb(0,255,0)' // 绿色
}
}
}