benleilei opened a new issue #13064:
URL: https://github.com/apache/incubator-echarts/issues/13064


   ### Version
   4.8.0
   
   ### Reproduction link
   
[https://gallery.echartsjs.com/editor.html?c=xX3mlykuP0&v=1](https://gallery.echartsjs.com/editor.html?c=xX3mlykuP0&v=1)
   
   ### Steps to reproduce
   设置好迁徙图后(参见 https://gallery.echartsjs.com/editor.html?c=xX3mlykuP0&v=1)
   ```js
   setTimeout(function() {
       const opts = echarts.util.clone(option)
       opts.series = []
       chart.setOption(opts);
   }, 3000)
   ```
   无法清除地图上的点
   只能通过清空 data 的方式清除
   ```js
   setTimeout(function() {
       const opts = echarts.util.clone(option)
       opts.series.forEach(s => {
           s.data = []
       })
       chart.setOption(opts);
   }, 3000)
   ```
   
   ### What is expected?
   清除迁徙图的点和线,且没有任何残影
   
   ### 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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to