plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Plotly reset axes button not working as expected.

Open shreeramk opened this issue 2 years ago • 2 comments

Link to reproduce the issue https://codepen.io/shreeramk/pen/NWOvKva

What I am doing in the codepen example:

  1. Plotting a graph with date range from 26th to 28th.
  2. Then updating the xaxis range from 24th to 28th.
  3. Then zoom in the graph
  4. Now click on reset axes icon in plotly toolbar.

Expected: Expect the graph to reset to the xaxis range of 24th to 28th

Actual: But it is actually resetting to the old xaxis range of 26th to 28th.

Can someone please take a look into it and suggest how this can be handled to get the expected outcome.

shreeramk avatar Apr 28 '23 17:04 shreeramk

Any update here?

shreeramk avatar May 01 '23 13:05 shreeramk

I've noticed Reset Axes seems to behave identically to Autoscale. I dug in and found this feature broke with commit be1d805b4dc993b98fc72f44c49ff44045de001d.

DanielTOsborne avatar Dec 09 '25 17:12 DanielTOsborne