d3plus / d3plus/d3plus

allow axis labels to overlap

Open
#533 4 comments 0 reactions 0 assignees View on GitHub

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.

d3plus_label_length_issue

Of course, a more complete solution would be to allow overriding (or setting) the label array.

Contributor guide

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.