6👍
✅
There’s currently a bug in chart.js: https://github.com/nnnick/Chart.js/issues/592
Try to skip chart rendering if the element is not visible
if ($(".visitorsChart").is(":visible")) {
var ctx = $(".visitorsChart").get(0).getContext("2d");
var myPieChart = new Chart(ctx).Pie(data,{});
}
Source:stackexchange.com