-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Marker styles are not updated with Plotly.restyle in zoomed state until double-click to zoom out #1480
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
Thanks for writing in! As a lot of people do, you're not providing the right input to See https://codepen.io/etpinard/pen/WpZJgb for a working example. And please refer to our https://community.plot.ly/ for more restyle examples. |
Thanks for the comment about the input. However, the working example does not have marker style updated when zooming in either? |
I don't understand. Why should the marker style update on zoom? Restyle is only called on button click if I'm not mistaken. |
Sorry for the confusion. I mean if I click the buttons to trigger restyle without zooming in, the marker styles are updated immediately. However, if I zoom in and click the buttons, the marker style are not updated until I double-click the graph to zoom out. |
Thanks again for the report @kimsk This will be fixed in the next release |
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
Steps to reproduce:
opacity
= 1 and others haveopacity
= 0.31
, and the blue marker should haveopacity
= 1, and the red marker should haveopacity
= 0.30
.Expected Result:
The red marker should have
opacity
= 1 and the blue marker should haveopacity
= 0.3Actual Result:
The blue marker still has
opacity
= 1. The marker styles are not updated until I double-click to zoom out.The text was updated successfully, but these errors were encountered: