You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if steps were stopped if the chart no longer exists, and maybe if there was a function to force steps to stop.
For now, before disposing, I'm manually clearing the timeout and setting _layouting to false.
This came up in the context of a graph made dynamically from user input that could get quite large. After making a large graph, everything would slow down even after switching to a smaller one, because the first one was still being processed in the background.
The text was updated successfully, but these errors were encountered:
Version
5.4.3
Link to Minimal Reproduction
https://jsfiddle.net/6rx1hmou/43/
Steps to Reproduce
In the example, the text shows whether the graph is laying out. Uncomment
chart.dispose()
to see that it continues to layout with no chart.To reproduce from scratch:
Current Behavior
Force layout steps continue to fire after chart has been disposed.
Expected Behavior
It would be nice if steps were stopped if the chart no longer exists, and maybe if there was a function to force steps to stop.
For now, before disposing, I'm manually clearing the timeout and setting
_layouting
tofalse
.Environment
Any additional comments?
This came up in the context of a graph made dynamically from user input that could get quite large. After making a large graph, everything would slow down even after switching to a smaller one, because the first one was still being processed in the background.
The text was updated successfully, but these errors were encountered: