I want to acquire the coordinate data of the click event at a free position (corresponding to zoom)

Hi.

I want to acquire coordinate data of a region which is not spiked.

What I tried so far:
Try ↓

I made ↓, but it will collapse when zooming.

So, I’d like to do event handling with the same coordinate calculation as other plotly_click or plitly_hover.
In the event of click, you want to firing an event and get coordinates without spike. And in a form corresponding to zoom.

What I’m thinking now,
Hacking click.js event
However, although I want to take a value of this _hoverevent format, a problem occurred because _hoverevent did not come out when I did not hover.

Is there a good way to do it?
Thanks.

Hmm. I’m not 100% sure what you’re looking to do during drag motion, but it might be easier to use dragmode: 'select' and listen to the plotly_selected handler instead.