Chartjs-Update the Chartjs push data with ajax

0👍

You can use setInterval method to execute the code which renders the chart with updated data.

var pollInterval = 15000;  //change this value as needed
function renderChart() {
   // put your existing code to render the chart here
}

$(function () {
     window.setInterval(renderChart, pollInterval);
});

Leave a comment