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/01/04 03:16:13 UTC

[GitHub] DorisOu commented on issue #9676: echarts 图表切换,多次执行setOption后数据交叉影响

DorisOu commented on issue #9676: echarts 图表切换,多次执行setOption后数据交叉影响
URL: https://github.com/apache/incubator-echarts/issues/9676#issuecomment-451344006
 
 
   this problem is solved.
   $('#selects').on('change', function() {
           var options = $(this).val();
           if (options == 'region') {
               regionMap.clear(optionIndustry);
               regionMap.setOption(optionRegion);
               $('.tableBox').removeClass('hidden');
           } else if (options == 'industry') {
               regionMap.clear(optionRegion);
               regionMap.setOption(optionIndustry);
               $('.tableBox').addClass('hidden');
           }
       });

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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