Closed chiptu closed 2 years ago
You need to make your testData
reactive by using computed
if your are using Composition Api. In your exemple you are using the two syntax so that's wrong.
Use either one and testData needs to be reactive
Thanks a lot i wasn't used to new syntax and misunderstand few things !
Hey , Thanks a lot for your package .
The problem
Concisely i would like to know how to refresh the chartInstance data with an on watch event for example.
I noticed in the doc that you update data with a function in the setup function.
In the ChartJs documentation it seems possible to update data on any events and i can't access and update data ( first time i'm using chartjs it maybe comes from my knowledge lack).
Here in my example i'm having the props weekstat updated which triggers the watch event but i can't update the chartInstance in it ...
My code
Version of
vue-chart-3
vue-chart-3: 3.0.7 chart.js: 3.7.0
Version of Vue
Vue 3.0.5