-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
[Bug]: Read only issue while using vue-query #1039
Comments
Well I guess this is because if you change the filter, you modify the whole data object. You should try to make a copy and then after replacing it, manually updating the chart with |
I'm not sure why this is closed. The documentation says:
computed: {
chartData() { return /* mutable chart data */ },
chartOptions() { return /* mutable chart options */ }
} It says Sorry to be nit-picky, but this is an annoying warning that shouldn't be there or updating charts should be documented clearly. I was able to work around it by doing this: <Line
id="my-chart-id"
:options="lineOptions"
:data="JSON.parse(JSON.stringify(chartData))"
/> |
Feel free to make a fix pr :) |
Would you like to work on a fix?
Current and expected behavior
Faced Issue
While change the filter dropdown first time i faced this issue.
Reproduction
https://stackblitz.com/github/apertureless/vue-chartjs/tree/main/sandboxes/bar?file=index.ts
chart.js version
4.3.0
vue-chartjs version
5.2.0
Possible solution
No response
The text was updated successfully, but these errors were encountered: