Get data extents without resetting view
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
I have some plugins to do pan and mousewheel scroll adapted heavily from your examples.
What I would like to do is get the calculated plot extents of all visible series as if the zoom were reset - including any ranging and spacing that uPlot builds in. However I would like to do this without resetting the view.
In other words I would like to get the scale ranges that autoscale calculates without actually changing the scales.
An example use case : the pan plugin clips against the initial view extents. However if I show a hidden series it might increase the used range of the y-axis. I would like the pan plugin to be able to detect the change so it can adjust its allowable panning area.
Is there a nice/easy way of doing this at the moment?
Sorry to bombard you with issues.
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 reading the pan plugin and the examples it was adapted from, then trace how autoscaling calculates ranges for visible series. The work is done when those calculated extents, including ranging and spacing, can be inspected without changing the current scales or view, and the pan plugin can use them after a hidden series is shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100