score:8

Accepted answer

you can fix the issue by making var chart; global (put it right before your myfunction() call). then your destroy should be if(chart) chart.destroy();


Related Query

More Query from same tag