plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.87k stars 1.85k forks source link

Plotly reset axes button not working as expected. #6584

Open shreeramk opened 1 year ago

shreeramk commented 1 year ago

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 commented 1 year ago

Any update here?