Chartjs-Fully destroy charts on ngDestroy method from Angular 4

0👍

You’ve destroyed the charts, but not their context. Something is maintaining the count, either in your code or the Chart.js library.

If workarounds based on the order of these charts in your array are unreliable, then you could look into specifying the ID values on creation, or re-initialising the counter (possibly by recreating the object with that context).

0👍

So, looks like it was a bad idea to use indexes of chart objects, i solved the problem in my case just when i start to create my own custom id’s and use them.

Leave a comment