nicky132 edited a comment on issue #15153:
URL: https://github.com/apache/echarts/issues/15153#issuecomment-861930444


   TITLE
   
   markPoint.itemStyle.normal.color According to the current data, the color 
cannot be set dynamically
   
   BODY
   
   Version
   "echarts": "^5.0.0",
   
   Steps to reproduce
   ```js
   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';
   //Can't change this color dynamically
   return'normal operation'
   } else {
   let newOption = option;
   option.series[0].markPoint.itemStyle.normal.color ='red';
   //Can't change this color dynamically
   return'No response'
   }
   }
   },
   color: this.state.color
   }
   },
   symbolSize: [50, 50],
   symbolOffset: [0, 0],
   }
   ```
   What is expected?
   markPoint.itemStyle.normal.color can dynamically set the color according to 
the current data
   
   What is actually happening?
   markPoint.itemStyle.normal.color According to the current data, the color 
cannot be set dynamically


-- 
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]

Reply via email to