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

beginAtZero gets disabled when running .update() (v2 beta) #1725

Closed
davis opened this issue Dec 2, 2015 · 4 comments
Closed

beginAtZero gets disabled when running .update() (v2 beta) #1725

davis opened this issue Dec 2, 2015 · 4 comments

Comments

@davis
Copy link
Contributor

davis commented Dec 2, 2015

rendering the chart initially works fine but when i change the data and do a chart.update()

my chart goes from looking like this:
screen shot 2015-12-01 at 8 10 34 pm

to this:
screen shot 2015-12-01 at 8 12 58 pm

here's a snippet of code i'm running:

    this.chart.data.labels = this.model.get('labels');
    this.chart.data.datasets = this.model.get('datasets').map((dataset, index) => assign({
      label: dataset.label,
      data: dataset.data,
    }, colors[index]));
    this.chart.update();
@etimberg etimberg added the v2.x label Dec 4, 2015
@etimberg
Copy link
Member

etimberg commented Dec 4, 2015

Can you please create a JSFiddle demoing this. I have some ideas on what the issue might be.

@davis
Copy link
Contributor Author

davis commented Dec 8, 2015

@etimberg
Copy link
Member

etimberg commented Dec 9, 2015

@davis I found this issue. See #1755

@etimberg
Copy link
Member

Closing since #1755 was merged

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

2 participants