Skip to content

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

Closed
@kimsk

Description

@kimsk

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.

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions