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.

Marker styles are not updated with Plotly.restyle in zoomed state until double-click to zoom out

See original GitHub issue

When calling Plotly.restyle in zoomed state, the markers style are not updated in UI until I double-click to zoom out.

Codepen: https://codepen.io/karlkim/pen/OpxMxG?editors=1010#0

Click one of the buttons to trigger Plotly.restyle which update style of markers

Steps to reproduce:

  1. Initially, the red marker has opacity = 1 and others have opacity = 0.3
  2. Click 1, and the blue marker should have opacity = 1, and the red marker should have opacity = 0.3
  3. Zoom into the area around red marker and click 0.

Expected Result:

The red marker should have opacity = 1 and the blue marker should have opacity = 0.3

Actual Result:

The blue marker still has opacity = 1. The marker styles are not updated until I double-click to zoom out.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
etpinardcommented, Mar 16, 2017

Thanks again for the report @kimsk

This will be fixed in the next release 1.25.0.

0reactions
etpinardcommented, Mar 16, 2017

No worries @kimsk !

Thanks very for the report. Something is up during restyle in versions 1.21.3 and up. I think https://github.com/plotly/plotly.js/pull/1257 is the culprit. I’ll investigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotly.Js: How To Make Markers Only Show When Zoomed In
To select a single data marker click that data marker two times. ... zoomed state the markers style are not updated in UI...
Read more >
Double click resets ranges as well - Plotly Community Forum
I learned that double-click on chart resets the zoom, and that is behavior I'm completely fine with. However, it seems double click will ......
Read more >
Plotly zoomed marker area - python - Stack Overflow
I need to get a zoomed view for some marker and save that view to a .png file. I could do this manually,...
Read more >
Visualization with Plotly.Express: Comprehensive guide
A detailed guide on how to create many visualizations with Plotly Express with layout styling, interactivity, animations, and many chart ...
Read more >
Plotly update example - Caritas Castellaneta
Use pip to install this package: Plotly update function. redraw incorrectly. ... theme. subplots: helper function for laying out multi-plot figures; plotly.
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