๐:0
Basically, to run function in x seconds, use setTimeout
setInterval( function () {
//do magic here every 2seconds
}, 2000);
And for updating chart.js data refer to this answer
๐:0
Basically, to run function in x seconds, use setTimeout
setInterval( function () {
//do magic here every 2seconds
}, 2000);
And for updating chart.js data refer to this answer