How to detect double click event on the bars of a plotly chart


I’ve a plotly bar chat, i’d like to detect double click on a bar, so I can do specific action for that particular bar when clicked. I could capture a single (left) click event on the bar using the plotly example, and i can get data of which bar is clicked by the passed parameter. I can also capture “plotly_doubleclick” event, but there is no parameter indicating which bar (or point) is clicked. I did some search but didn’t find anything. appreciate your help.

Here’s a workaround:

thanks mate, appreciate your help!

After discussing your and other people’s use case we describe a plan here

1 Like