Closed
Description
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:
- 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.