Skip to content

Zoom glitch when restyling #346

Closed
Closed
@Jodana

Description

@Jodana

Whenever you use restyle() to update a trace (affecting x or y points) in a zoomed state, plotly keeps track of the zoomed view. Then, whenever you double-click in order to unzoom, it will either unzoom or return to that zoomed state.

If a second restyle() happens in the same conditions, you can never unzoom completly (it switch between the first recorded zoomed state, and the last one).

Here is how to reproduce:

  1. Zoom wherever you want
  2. Click on the "Restyle" button in order to update the trace
  3. Unzoom
  4. Double-click to switch between global view and zoomed view

Codepen: http://codepen.io/etpinard/pen/eZvKag

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