Skip to content

Conversation

Fil
Copy link
Contributor

@Fil Fil commented May 1, 2023

closes #1414

Note: I started by supporting offsetTop, offsetBottom, and inset as a shorthand, but supporting only inset with the “natural“ direction appeared like a simpler option.

@Fil Fil requested a review from mbostock May 1, 2023 20:28
Fil added a commit that referenced this pull request May 1, 2023
(note: conflicts with #1516, but the merge is trivial)
@Fil
Copy link
Contributor Author

Fil commented May 1, 2023

It might be a bit surprising that the name is inset since the other direction is labelOffset?

@Fil
Copy link
Contributor Author

Fil commented May 1, 2023

Merged in #1517 and fixed the federalFunds test (which can't be fixed within #1517).

@Fil
Copy link
Contributor Author

Fil commented May 2, 2023

As we discussed it would probably be less confusing to call this labelDx (and y), since it's not a segment that we inset, but just a way of translating the label. (We'd lose the relative positioning though, when switching from left to right labelDx would always go →; I think it's fine.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to offset an axis label

1 participant