You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me moving to 2.9.3 didn't work yet, leaving the rest of the code as is. However, the example code I see everywhere (including in your code here) says to do .addPlugin([plugin]), note the Array structure surrounding the plugin. When I check the code in vue-chartjs as shown here https://github.com/apertureless/vue-chartjs/blob/develop/src/BaseCharts.js#L62 it actually uses a .push to add new plugins.
So for me the fix was this.addPlugin(chartjsPluginAnnotation) (note the lack of [ ] surrounding the plugin)
Expected Behavior
Annotation on the chart is displayed.
Actual Behavior
Annotation on the chart is not displayed.
Environment
ChartBar.vue
Page.vue
I've checked these links:
https://stackoverflow.com/questions/56273630/attach-a-custom-plugin-to-vue-chart
vue-chartjs GitHub issue #86
It works on CodeSandbox
https://codesandbox.io/s/wandering-tdd-h8h0m?file=/src/App.vue
But doesn't work in my actual vue project.
I saw the same issue on the internet:
https://www.gitmemory.com/issue/apertureless/vue-chartjs/666/734989814
But can't figure out why it so.
Please could you give me a hint?
I definitely missed something.
The text was updated successfully, but these errors were encountered: