chartjs icon indicating copy to clipboard operation
chartjs copied to clipboard

Possible to Auto Update Chart?

Open marcpope opened this issue 5 years ago • 0 comments

Thanks for this awesome tutorial. I am fairly new to jquery and chartjs. I got my first chart working and it's awesome. If I wanted to update this chart every 60 seconds, how would I go about that?

Normally, I'd do something like: setInterval(function(){ functionName(); }, 60000 );

But since this doesn't have a function name, it just does a document ready function, I am not sure what to do. Also, chartjs has an update function. I'd love to know how to utilize that.

marcpope avatar Apr 05 '19 19:04 marcpope