NUKnightLab / NUKnightLab/TimelineJS3
Feature: Logarithmic scale?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.2k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
Hi, sorry to ask what's probably a common question but didn't see in any any of the options or help pages:
How do we get a logarithmic scale, e.g. one that goes backward from the present in a logarithmic fashion?
Currently with a linear scale, my 20th-century events look crammed together and my medieval and ancient events are very far apart. A log scale should even out the spacing better.
(I realize I could take the log manually and enter fractional powers of ten for the years, but...yuck, I don't think my readers would appreciate that.)
If this is not currently a feature, then file this under "Feature Request"! I'm willing to try to implement this and submit a PR if someone can point me to the right part of the JS code that handles spacing along the horizontal axis, and some idea of how a Boolean config option should get passed through to wherever that appropriate section of code can access it.
Contributor guide
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 locating the JavaScript code that handles spacing along the horizontal axis and trace how configuration options are passed through the timeline. Define how a Boolean logarithmic-scale option should reach that code. Done means the option produces logarithmic spacing for timelines while preserving the existing linear-scale behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100