Chartjs-Charts.js from session var, flicker effect

0👍

If myChart.destroy() not working. Try myChart.update().

Try update like this:

var myChartData = myChart.data; // need to store in variable first

myChartData = chart_data; // chart_data from $_SESSION var
myChart.data = myChartData;

myChart.update();

Good luck.

Leave a comment