-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
constant numeric x and y for text marks #594
Conversation
A question: here we add x and y regardless of the anchor, but we could decide that the sign of the "right" and "bottom" positions should be negated (to go "inset"). I don't know which is the most intuitive. |
59d40a3
to
77ed526
Compare
converted to draft with the two questions that came up in review |
… the anchor anchor can be any of "top", "bottom", "left", "right" or combinations such as "top-left" closes #523
8b84b40
to
9e78a97
Compare
I've now generalized the feature to dots and images. Not sure if it can/should be done for other marks? |
Obsolete. This can be achieved with frameAnchor: left and dx: 10 instead of x: 10. |
position the text relative to the anchor
anchor can be any of "top", "bottom", "left", "right" or combinations such as "top-left"
demo: https://observablehq.com/@observablehq/text-facet-alignment-523
closes #523
todo: