leeoniya / leeoniya/uPlot

logarithmic scales don't like soft min/max?

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
463
PR merge metrics
No merged PRs in 30d

Description

Logarithmic scales work when using

range: { min: { hard: ...}, max: { hard: ...} }

but fail when using

range: { min: { soft: ...}, max: { soft: ...} }

Codepen: https://codepen.io/codesurfr/pen/XWYPdJE

Maybe I'm not understanding what 'soft' really does and I'm asking for something impossible?

NB: It would be really nice there was a bit of docs on the various ways to set ranges, ideally with a tad of motivation in there too... ;-)
NNB: related issue #577

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 with the linked CodePen reproduction and compare the hard min/max configuration with the soft min/max configuration. Read related issue #577 for context on range behavior. Done means determining whether soft bounds should work on logarithmic scales and documenting or correcting the behavior accordingly.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.