question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plotly_afterplot Event isn't triggered on pan/zoom

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
JosephHewittcommented, Jun 17, 2018

Thank you, I can confirm plotly_relayout works as expected. I think the documentation for plotly_afterplot needs updating and then this issue is resolved.

0reactions
etpinardcommented, Jun 18, 2018

it to be the one “any change of state” event

Sounds great 👌

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found