Skip to content

axis lineInset and textInset#1519

Draft
mbostock wants to merge 1 commit into
mainfrom
mbostock/axis-label-inset
Draft

axis lineInset and textInset#1519
mbostock wants to merge 1 commit into
mainfrom
mbostock/axis-label-inset

Conversation

@mbostock
Copy link
Copy Markdown
Member

@mbostock mbostock commented May 2, 2023

Alternative to #1516. Adds lineInset for vertical inset and textInset for horizontal inset, similar to lineAnchor and textAnchor. (Perhaps these should be options on the text mark? Maybe the meaning is wrong if the text is rotated, in which case we should use different names?)

@mbostock mbostock requested a review from Fil May 2, 2023 02:09
@Fil
Copy link
Copy Markdown
Contributor

Fil commented May 2, 2023

I find the word textInset confusing, because I don't immediately see the "extent of reference" that we inset into (since we're already out of the scale's range, so to speak). Also, it doesn't address the center labelAnchor, where there is no natural direction to "inset", but we still might want to move the label to the left or right (or top / bottom). (However, I support removing support for the confusing labelOffset.)

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.

2 participants