0👍
we should use the
if(myChart)
myChart.destroy()
method before assigning new datasets as described in the following link
- [Chartjs]-How to shorten Chart.js label
- [Chartjs]-How to add text in centre of the doughnut chart using Chart.js?
Source:stackexchange.com