3π
β
Set window.chart =
rather than relying on the implicit function of chart =
. If you were using strict mode with your code, it should throw a warning.
0π
Take a look at this: https://github.com/chartjs/Chart.js/issues/1007
Change:
var myNewChart1 = new Chart(ctx1).Line(barChartData1, {animation: false});
To:
window.myNewChart1 = new Chart(ctx1).Line(barChartData1, {animation: false});
0π
for me using jQuery, I just did $("#container").html="";
Source:stackexchange.com