leeoniya / leeoniya/uPlot

Zoom is reset when adding/removing series

Open
#832 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. Go to Add/Del demo https://leeoniya.github.io/uPlot/demos/add-del-series.html
  2. Zoom the chart.
  3. Click the 'Add Series' button.
  4. 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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.