Marker styles are not updated with Plotly.restyle in zoomed state until double-click to zoom out
See original GitHub issueWhen 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:
- Initially, the red marker has
opacity
= 1 and others haveopacity
= 0.3 - Click
1
, and the blue marker should haveopacity
= 1, and the red marker should haveopacity
= 0.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:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
Thanks again for the report @kimsk
This will be fixed in the next release
1.25.0
.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.