0👍
✅
The solution is to replace the used canvas with a new one, before drawing on it. In jQuery:
$("#overallChart").replaceWith("<canvas id='overallChart' height='270' width='270'></canvas>");
var lineChart = new Chart(document.getElementById("overallChart").getContext("2d")).Line(lineData);
as per this post.
Source:stackexchange.com