Wang-W-C commented on issue #18371:
URL: https://github.com/apache/echarts/issues/18371#issuecomment-1465096849

   > not-a-bug Data is large and _setTimeout_ of 2 seconds is not enough to 
redraw the chart, at least on average computers. Replace _setTimeout_ with 
following code and click on some outer label to see the effect.
   > 
   > ```
   > myChart.setOption(options1);
   > let i = 0;
   > myChart.on('click', () => {
   >   if (i % 2 == 0) {
   >     myChart.setOption(options2);
   >   } else {
   >     myChart.setOption(options1);
   >   }
   >   i++;
   > })
   > ```
   
   Thank you for your reply,Although changing the timer to manual switch or 
extending the timer time can solve the overlap problem, the color change of 
label font and the thickening of circle still exist after the switch animation 
is completed.
   My current solution is:
   ```
   let i = 0;
   setInterval(function () {
     myChart.clear();
     if (i % 2 == 0) {
       myChart.setOption(options1);
     } else {
       myChart.setOption(options2);
     }
     i++;
   }, 2000);
   ```


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

To unsubscribe, e-mail: [email protected]

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