You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/05 11:30:32 UTC

[GitHub] [incubator-echarts] dingyang9642 opened a new issue #10394: bar柱状图更改数据显示问题:hover柱子的时候,改变柱子的itemStyle(data:[itemStyle: '...']),样式不能生效。

dingyang9642 opened a new issue #10394: bar柱状图更改数据显示问题:hover柱子的时候,改变柱子的itemStyle(data:[itemStyle: '...']),样式不能生效。
URL: https://github.com/apache/incubator-echarts/issues/10394
 
 
   ### Version
   4.2.0-rc.2
   
   ### Steps to reproduce
       const seriesData = _.map(data, item => {
           const itemStyle = hightLight === item.timeUnit ? {color: '#f00'} : {color: 'pink'};
           maxValue = maxValue < item.value ? item.value : maxValue;
           return {
               name: item.timeUnit,
               value: item.value,
               itemStyle: itemStyle,
               emphasis: {
                   itemStyle
               }
           };
       });
   ...
     this.chartRef.current.chart.on('click', item => {
               this.resetSeriseData(item.name); // 重新修改数据样式
   }
   
   ### What is expected?
   在hover某个柱子是单击该柱子,然后重设该柱子展示样式itemstyle,希望能正常render新样式
   
   ### What is actually happening?
   没有展示新样式
   
   <!-- 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org