Plotly reset axes button not working as expected.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Link to reproduce the issue https://codepen.io/shreeramk/pen/NWOvKva
What I am doing in the codepen example:
- Plotting a graph with date range from 26th to 28th.
- Then updating the xaxis range from 24th to 28th.
- Then zoom in the graph
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen and reproduce the sequence: update the xaxis range, zoom, then click the reset axes toolbar icon. Trace how reset axes chooses its range and verify that the completed change restores the updated 24th–28th range rather than the original 26th–28th range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100