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
Project Example
I have created a simple project example with some of the configuration I use. Check it and click on Open in New Window to better understand questions.
How to Ease Garbage Collector Job?
In the attached project if we click on More data button:
Empty old data array
Set new data array
Refresh chart
If we analyse the JS memory with devtools and click many times on More data button I can see:
JS heap is increasing on some clicks. Is there any way to avoid this?
When garbage collector is launched (after a long time or forcing it with devtools), most of the time the whole memory is released (back to initial situation), but sometimes not and memory increased (memory leak?).
In general, which is the best way to full update datasets[x].data values?
Why Re-Creating a New Chart Does Not Show Properly?
I just tested to destroy and recreate new chart to check if this way memory is handled in a better way. We can achieve this by clicking More data (re-create) button and:
Chart is destroyed.
Chart variable is reset.
Chart is re-created.
But the problem here is that chart is not rendered in the proper way. Any suggestion to fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Project Example
I have created a simple project example with some of the configuration I use. Check it and click on Open in New Window to better understand questions.
How to Ease Garbage Collector Job?
In the attached project if we click on More data button:
If we analyse the JS memory with devtools and click many times on More data button I can see:
In general, which is the best way to full update datasets[x].data values?
Why Re-Creating a New Chart Does Not Show Properly?
I just tested to destroy and recreate new chart to check if this way memory is handled in a better way. We can achieve this by clicking More data (re-create) button and:
But the problem here is that chart is not rendered in the proper way. Any suggestion to fix it?
Beta Was this translation helpful? Give feedback.
All reactions