allow axis labels to overlap
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 180
- PR merge metrics
- No merged PRs in 30d
Description
This could be another parameter to .legend() which would skip the calculation of the maximum label size.
I would like to show the bottom legend with long names, but currently I can only display the top one because legend is hidden when the labels would (potentially) override each other.

Of course, a more complete solution would be to allow overriding (or setting) the label array.
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 tracing the .legend() behavior that calculates maximum label size and hides legends when labels may overlap. Determine whether the requested parameter or label-array override is the intended scope, then verify that long bottom-axis legend labels can remain visible without changing the existing default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3js, javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100