diysimon commented on issue #21542:
URL: https://github.com/apache/echarts/issues/21542#issuecomment-4153422845
For line charts, I'm not entirely sure whether a full left-to-right
animation on data update is the more appropriate behavior, or whether the
current approach (transitioning in place) is actually the better UX. This is
worth discussing — a left-to-right sweep on every data update could feel
jarring in scenarios where only a subset of data points change.
That said, if you'd like to force the left-to-right entrance animation on
update in the meantime, here's a workaround that works — dispose and
reinitialize the chart:
```js
myChart.dispose();
myChart = echarts.init(document.getElementById('chart'));
myChart.setOption(newOption);
```
--
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]