kenjinz commented on issue #17641:
URL: https://github.com/apache/echarts/issues/17641#issuecomment-3435091789
> `clone` doesn't take that much time in my case but I found another major
issue. The chart rerenders fully for every `setOption` call. So even if you
just want to enable `dataZoom`, change the tooltip formatter or even with just
`setOption({})`, you get a full render. This can block the main thread for a
long time when there is a lot of data. This can be somewhat mitigated by
checking the new options and skipping render in some cases. Another improvement
would be async rendering where echarts releases the main thread (with
setTimeout, for example) during long renders. A `setTimeout` between rendering
each series would be the most simple approach. Chunking all the data would be
more comprehensive.
It's exactly the same with my case where I have a huge amount of data and
need to update the chart via setOption several time. In my case, after setting
the series, it need around 3 - 4s to do 1 setOption even I just want to update
the axis label or something else.
--
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]