Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to Auto Update Chart? #7

Open
marcpope opened this issue Apr 5, 2019 · 0 comments
Open

Possible to Auto Update Chart? #7

marcpope opened this issue Apr 5, 2019 · 0 comments

Comments

@marcpope
Copy link

marcpope commented Apr 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant