-1👍
Probably because you are redrawing chart on the same div or canvas use .destroy();
Eg: To create
window.myPie = new Chart(ctx, config);
and To destroy before redrawing
window.myPie.destroy();
- Chartjs-How can i add additional Data(Type) to chart.js
- Chartjs-Chart.js zoom plugin: Unexpected identifier error in console
Source:stackexchange.com