Is it possible to capture double click on a point element #9951
-
I see the "Click" event, but see no way to capture a double click. Is there one internal to Chart.js? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
No but you can use a custom plugin that listens to the See this stack answer for an example of a plugin that catches all events: https://stackoverflow.com/a/70154204/8682983 |
Beta Was this translation helpful? Give feedback.
-
I'll have to look at that further, in the demo, the double click event didn't appear to show, but I'll see. |
Beta Was this translation helpful? Give feedback.
No but you can use a custom plugin that listens to the
afterEvent
hook. Here you can check the event type if it is a double click event.See this stack answer for an example of a plugin that catches all events: https://stackoverflow.com/a/70154204/8682983