-
Notifications
You must be signed in to change notification settings - Fork 185
Plot.text halo option(s) #666
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
Labels
enhancement
New feature or request
Comments
Merged
mbostock
added a commit
that referenced
this issue
Jan 25, 2022
* make it easier to create a text halo by defaulting paintOrder to stroke and strokeWidth to 3 if the stroke option is specified. supersedes #667 closes #666 * default paintOrder * currentColor, not black Co-authored-by: Mike Bostock <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a CSS design question + an API design question.
The stroke: white is controversial, since we don't know that currentColor is black (or any dark color).
API design question: do we need three options (halo: true, haloStroke = "white", haloWidth = 4)?
(This can't be done by applying two text marks, because the halos are also there to fight overlapping texts.)
Ref. #27 and https://observablehq.com/@mbostock/inequality-in-american-cities
The text was updated successfully, but these errors were encountered: