Multiple y axis setScale does not work on other axis in mode 2
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
when using mode 2 the setScale function does not update the trace if another axis was used than y.
It can be fixed in uplot.iife.js line 4478 by replacing ".y" with "[s.scale]" as it is done for mode1 right below.
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 in uplot.iife.js at line 4478 and compare the mode 2 setScale handling with the mode 1 code immediately below it. Verify that setScale updates traces using an axis other than y when mode 2 is active, while preserving the existing y-axis behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100