Zoom is reset when adding/removing series
Open
Nobody has claimed this yet.
question
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Go to Add/Del demo https://leeoniya.github.io/uPlot/demos/add-del-series.html
- Zoom the chart.
- Click the 'Add Series' button.
- Chart will reset the zoom.
Is there a way to stop the chart resetting the zoom?
Contributor guide
No contributing guide indexed for this repository
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 behavior in the Add/Del demo at https://leeoniya.github.io/uPlot/demos/add-del-series.html: zoom the chart, then use the Add Series button and observe the reset. Trace the demo's series-add and series-removal entry points into the chart implementation; done means the existing zoom is preserved after either operation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100