-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
plotly_afterplot Event isn't triggered on pan/zoom #2740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is likely due to our performance improvements, so axis range changes don’t require a full replot anymore. The |
Thank you, I can confirm |
Good call @JOE95443 - the example at https://plot.ly/javascript/plotlyjs-events/#afterplot-event no longer acts as described. @etpinard I seem to recall us discussing this before and concluding we no longer even need afterplot, you can just use eg |
It's true we no longer need Now, it's true than pan/zoom no longer fires So, we have a two options:
If you chose to keep an |
It's true, if there were one event that always fired after any change to the plot, that could be useful. But what if in v2 this event was |
Aren't we planning on renaming |
sure :) Alright, fiddling a little it seems like |
Sounds great 👌 |
In previous versions of Plotly.js (1.35.2 works) I would use the
plotly_afterplot
event to detect when a user had panned the graph, but this event is no longer being called when the user pans or zooms.The issue can be reproduced using your plotly_afterplot example on Codepen. The event only seems to be called when the plot is first drawn and when the axes are reset. I've tested this on the latest version of both Chrome and Safari on MacOS; neither of which have events called from simply panning or zooming the plot.
The text was updated successfully, but these errors were encountered: