Black Lives Matter. Please consider donating to Black Girls Code today.

Can I listen to y-axis drag-to-zoom events as they happen?

I’ve an app which overlays the Plotly chart with ordinary HTML elements. But things look nasty when the y-axis gets zoomed, so I would ideally want to listen to the zoom event and adjust my overlay dynamically. The event plotly_relayout only triggers after the zoom, I need something that triggers during the drag of the axis.

As a fallback plan, is there any event that triggers before the zoom (so I can temporarily hide my overlay)? I tried to detect ordinary mousedown events, but that didn’t work either. I posted a separate thread about that here.

Not yet unfortunately, see for more details.

Thanks, I’ll keep an eye on that issue.