nicky132 opened a new issue #15153:
URL: https://github.com/apache/echarts/issues/15153
### Version
"echarts": "^5.0.0",
### Steps to reproduce
markPoint: {
position:'top',
symbol: 'circle',
itemStyle: {
normal: {
label: {
show: true,
color: '#fff',
formatter: function(param) {
if (param.data.coord[2]) {
let newOption = option;
option.series[0].markPoint.itemStyle.normal.color
= 'green';
//不能动态改掉这个颜色
return '正常运行'
} else {
let newOption = option;
option.series[0].markPoint.itemStyle.normal.color
= 'red';
//也不能动态改掉这个颜色
return '无响应'
}
}
},
color: this.state.color
}
},
symbolSize: [50, 50],
symbolOffset: [0, 0],
}
### What is expected?
markPoint.itemStyle.normal.color根据当前数据,能动态设置颜色
### What is actually happening?
markPoint.itemStyle.normal.color根据当前数据,不能动态设置颜色
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]