zhoufanglu commented on issue #10037:
URL: https://github.com/apache/echarts/issues/10037#issuecomment-853601804


   > @zhoufanglu 可以考虑在 setOption 前监听 finished,finished 后取消监听。
   > 
   > ```js
   > function onFinished(e) {
   >    console.log('onFinished', e)
   >    myChart.off('finished', onFinished)
   > }
   > 
   > function setOption(options) {
   >   myChart.on('finished', onFinished)
   >   myChart.setOption(options)
   > }
   > ```
   
   这似乎是个好办法。谢谢大佬,我试试。


-- 
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to