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

updates.html sample does not work #113

Closed
robotloveskitten opened this issue Mar 4, 2018 · 3 comments
Closed

updates.html sample does not work #113

robotloveskitten opened this issue Mar 4, 2018 · 3 comments

Comments

@robotloveskitten
Copy link

robotloveskitten commented Mar 4, 2018

I've been trying to duplicate this functionality -- add annotations dynamically and update chart, but haven't gotten it to work. Now I see the sample doesn't work anymore either.

switching the example to use 2.6.0 from the CDN does work.

@jgadbois
Copy link

I'm also trying to dynamically add/remove lines and not seeing it update

@osro
Copy link

osro commented Apr 26, 2018

This is probably due to changes how 2.7.0 ChartJS copies configs once you create the chart. Earlier it was references.

You need to work your changes directly to the chart.options and after that call chart.update().

chartjs/Chart.js#5111 (comment)

@etimberg
Copy link
Member

etimberg commented Mar 7, 2021

The latest code in master is working with chart.js v3.0.0-beta.13

@etimberg etimberg closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants