Rangeslider won't reset after zooming out
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
https://codepen.io/Lexachoc/pen/XWGGLJG (the plotly-latest.min.js is using 1.58.5)
The Autoscale or Reset axes buttons in the menu bar won't autoscale/reset the rangeslider correctly after using zoom out button.
I can confirm that with plotly-2.29.1.min.js, the issue exists (but Plotly.d3.csv is removed from version 2 so I can't use that version for the codepen). I found this issue when I use plotly-2.28.0.min.js and now with plotly-2.29.1.min.js:
(no codepen for this, sorry, this is server-side data)
My layout:
{
xaxis: {
rangeslider: {},
automargin: true,
tickfont: {
size: 14
},
showspikes: true,
spikemode: 'across', // or 'across' or 'marker'
spikethickness: 1
},
yaxis: {
fixedrange: true,
tickfont: {
size: 14
},
automargin: true,
},
}
The example in here
https://plotly.com/javascript/range-slider/
https://codepen.io/plotly/pen/WwXEoV
it doesn't have this issue (it uses plotly-1.8.0.min.js)
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 by reproducing the linked CodePen with plotly-2.29.1 and compare its behavior with the range-slider example. Read the zoom-out, Autoscale, and Reset axes handling for the x-axis rangeslider. Done means both buttons restore the rangeslider correctly after zooming out, including the reported layout with a fixed-range y-axis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100