GimmyHchs / vue-charts

Base on Vue2.0 wrapper for ChartJs. (Deprecated)
MIT License
357 stars 84 forks source link

Can't dynamically update the chart by an event. #5

Closed davepoon closed 7 years ago

davepoon commented 7 years ago

I am using the script tag way to load vue-charts. I have setup an event to click a button to update the chart labels and the datasets data which are binding to the stacked bar chart. :bind=true is on in the chartjs-bar, but the chart doesn't autoupdate when the value changed.

This is the jsfiddle code to replicate the issue, https://jsfiddle.net/cqkf3hyp/3/

Thank you for making this wonderful vue-charts ;)

GimmyHchs commented 7 years ago

Hi, the autoupdate bug has been fix.

You can try this. Code Pen Demo With Ver.1.2.5

thanks for ur report. and could I add the autoupdate demo in README file?

anamarquezz commented 6 years ago

I solved this by adding a v-if, to render the chart after set to data, my dynamically data.