plotly / plotly/plotly.js

Plotly reset axes button not working as expected.

Open
#6,584 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
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:

  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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.