11đź‘Ť
âś…
Here is an update to your fiddle. The primary change (other than fixing the function name typo) is to add
myChart.destroy();
before lines like
myChart = new Chart(ctx).Line(...);
The .destroy()
method gets rid of the event handler registrations etc, so you shouldn’t see those weird “ghost charts” when you mouse over the graphics.
Source:stackexchange.com