-
Notifications
You must be signed in to change notification settings - Fork 99
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
How to trigger reactivity / re-render chart by hand? #13
Comments
Hi and thanks for the report! Normaly the chart re-render automaticaly when the data changes! The solution for now is to force rerender by using the I'm working on a solution to make |
|
Wow, thank you so much for your incredible fast response. |
@Anubarak Updated the demo to showcase the reactive options :) https://codesandbox.io/s/demo-vue-chart-3-ugynm?file=/src/App.vue |
Awesome, I updated to your version and it works great. |
How is it possible to re-render the chart by hand when data changes?
I made this little sandbox where I wand to change the axis by user input.
https://codesandbox.io/s/suspicious-monad-h5ecd?file=/src/components/Chart.vue
Changing the xMax / xMin changes indeed the passed options to your chart (I render the options above the chart) but the chart itself does not change.
Is it maybe because you commented out your watcher? https://github.com/victorgarciaesgi/vue-chart-3/blob/main/src/components.ts#L65-L73
Could you please explain how I can achieve that?
Btw: thank you very much for your time and effort. I like your library :)
The text was updated successfully, but these errors were encountered: