Skip to content
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

Multiple colors and text justification within annotation label #50

Open
lilyli opened this issue May 7, 2018 · 1 comment
Open

Multiple colors and text justification within annotation label #50

lilyli opened this issue May 7, 2018 · 1 comment

Comments

@lilyli
Copy link

lilyli commented May 7, 2018

Hi Susie, thank you for this awesome d3 module! I was wondering if there's a way to style the annotation text so certain words have different colors?

screen shot 2018-05-07 at 3 04 17 pm

I'd like to color the words "Democrat" and "Republican" blue and red respectively. Also, is it possible to justify the text within the annotation?

@susielu
Copy link
Owner

susielu commented May 13, 2018

Right now there is not way for the text styling of colors you're asking about, but you can change the text justification just by styling the note with the text-anchor css attribute.

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

No branches or pull requests

2 participants