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

reactiveData mixin #244

Closed
kgrosvenor opened this issue Nov 3, 2017 · 1 comment
Closed

reactiveData mixin #244

kgrosvenor opened this issue Nov 3, 2017 · 1 comment

Comments

@kgrosvenor
Copy link

kgrosvenor commented Nov 3, 2017

Expected Behavior

That when chartData changes the graph is updated

Actual Behavior

When chartData is changing it is updating the graph, but in your code are you calling chart.update() ?

For some reason i hover on the graph and it loads in a previous set of data??

I think you should init a new chart instance each time this is changed right?

Environment

  • vue.js version:
  • vue-chart.js version:
  • npm version:
@kgrosvenor
Copy link
Author

Closing this as i found a solution.

This seemed to work

if (self.chartData !== null) { self.chartData.labels = self.labels; self.chartData.datasets = self.dataset; self.renderChart(self.chartData, self.options); } else { self.chartData = { labels: self.labels, datasets: self.dataset }; self.renderChart(self.chartData, self.options); }

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