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

Hi,

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: http://codepen.io/etpinard/pen/JWaEXG?editors=0010

thanks mate, appreciate your help!

After discussing your and other people’s use case we describe a plan here https://github.com/plotly/plotly.js/issues/1546

1 Like