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

How to get axis when scroll or zoom on scatter plot

If I set ‘plotly_click’ event on scatter plot, callback argument includes clicked points and axis infomation, but ‘plotly_afterplot’ has no arguments. I want to add div tooltip that follows clicked point when scroll or zoom, is there any way to get point and axis infomation after scroll or zoom ?

Yes, by listening to plotly_relayout