Chartjs-Chart.js page is zooming out everytime we change to a different graph while using a browser on with IOS El Capitan or latest iPad version

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.

Leave a comment