Axis labels
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 41
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 16
Description
Add <Axis label="..."> to easily support adding labels
- Easily rotate (for y axises)but not always (better readability)
- Automatically rotates based on position (
<Axis placement="left|right" labelPlacement="middle">)
- Automatically rotates based on position (
- Support
start,middle,endplacement (labelPlacement) - Automatically add arrows (unicode: ↑ →) for non-band scales, with option to disable (
labelArrow) - Support changing the
labelOffset- Currently based on chart padding (similar to Observable Plot)
- Add
labelslot for greater control (markup, etc)
Observable Plot axis marks is a good reference
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 with the Axis component and compare its current behavior with Observable Plot's axis marks and the linked Nivo examples. Implement the remaining checklist items: arrows with an opt-out, configurable labelOffset, and a label slot, while preserving the described rotation and placement behavior. Done means all unchecked requirements are supported by the Axis API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, typescript
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100