observablehq / observablehq/plot
Automatically transform to thousands etc. for shorter tick labels.
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
For large powers of ten, tick labels are often truncated by default:

It’d be nice if we could detect this sort of powers-of-ten ticks and automatically applied a suitable scale transform, such as converting to billions (y: {transform: d => d / 1e9}):

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
The issue provides no file or test entry point. Start by tracing how tick labels and scale transforms are generated, then define when powers-of-ten ticks should trigger an automatic scale and verify that large values receive shorter, readable labels without changing the underlying data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100