-
Notifications
You must be signed in to change notification settings - Fork 112
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
Broken chart when modifying the dataset in onMounted() #120
Comments
I tried with a setup similar to the one described by @Martijn097 in #83
But the result is that my CanvasGradient value is not taken into account 🧐 (at least it is not broken) |
maennchen
added a commit
to jshmrtn/vue-chart-3
that referenced
this issue
Sep 23, 2022
Fixes an issue where a CanvasGradient was falsely cloned as an empty object and thus breaking the background of the chart This should probably fix victorgarciaesgi#120 as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello everyone, I am onboarding on a new Vue3 project and I will use Chart.js (and its vue-chart-3 equivalent). I wanted to created a simple area chart with a gradient filling. Following both Chart.js and vue-chart-3 documentation, I understood that I had to create a CanvasGradient object and assign it to the canvasRef. However, when doing so the chart becomes broken after the initialization.
I thought it came from my implementation (maybe there is an error, I am not familiar with it) so I decided to do something very simple, and the issue still happens.
I don't think my setup is wrong, but maybe I missed something. Thanks!
To Reproduce
Here is a Codesandbox with vue3 + composition API
https://codesandbox.io/s/zen-elion-g6mq6k?file=/src/views/HomeView.vue
Version of
vue-chart-3
ex: v3.1.18
Version of Vue
The text was updated successfully, but these errors were encountered: