plotly_afterplot Event isn't triggered on pan/zoom
See original GitHub issueIn 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Event handlers in JavaScript - Plotly
Many Plotly events emit event data when the event is triggered. Event data is information about the data point related to the event...
Read more >Developers - plotly_afterplot Event isn't triggered on pan/zoom -
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...
Read more >Plotly.js returns unexpected data when 'plotly_click' event is fired
I am using Plotly.js v1.50.1. The issue is caused because the click event should be setup to accept two arguments in the callback...
Read more >plotly.js-dist | Yarn - Package Manager
Ready-to-use plotly.js distributed bundle. Contains trace modules bar , barpolar , box , candlestick , carpet , choropleth , choroplethmapbox , cone ...
Read more >CHANGELOG.md ... - GitLab
Fix Plotly. · Make plotting/updating WebGL-based traces fail gracefully when WebGL isn't supported [#2697] · Fix mapbox layout layer updates [#2734] · Fix...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you, I can confirm
plotly_relayout
works as expected. I think the documentation forplotly_afterplot
needs updating and then this issue is resolved.Sounds great 👌