Custom plugin to show tooltips, how to add on hover event #10229
Unanswered
digitalforgeangelo
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The plugins dont have their own onHover and onClick hooks. They do have event hooks like before and afterEvent: https://www.chartjs.org/docs/3.7.1/developers/plugins.html#event-handling You can use these hooks to achieve what you want. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have made a custom plugin to always show the tooltips since that was what I needed.
The only thing I would like to have now is a on-hover action.
How can I add a eventListener for a onClick so that I can use the data that was clicked on? The onHover I have currently does not work. It doesn't do anything at all.
I am using Nuxt by the way and Vue-ChartJS latest version which is basically just a wrapper around ChartJS.
Beta Was this translation helpful? Give feedback.
All reactions