Home forums Using CanvasJS Holding Memory Reply To: Holding Memory


Sunil Urs


Looking at the code, I can say that the problem is because you are creating the an entirely new Chart every time – while previous chart is still there – check using firebug. Instead you should create only one Chart object and call chart.render() each time you want to update (after modifying the data).

Here is a section on creating Dynamic Charts.