-
Notifications
You must be signed in to change notification settings - Fork 304
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
Is there a way to softwrap labels? #62
Comments
@dagumak |
I actually gave that a shot, but it didn't make a difference. It seems like I would have to wrap textarea elements around it. http://stackoverflow.com/questions/4991171/auto-line-wrapping-in-svg-text |
@dagumak <div class="soft-wrap">text to soft wrap</div> .soft-wrap {margin-bottom:10px} |
I don't think I have much CSS options since the text element is SVGs. I found this stackoverflow and it suggests to add a foreign object: http://stackoverflow.com/questions/4991171/auto-line-wrapping-in-svg-text |
Any update on wrapping labels? |
I saw the stagger labels, but since these labels are drawn by SVG, how would I go about adding line breaks? I'm thinking of using d3.selectAll('text') and then adding a line break after the first space.
The text was updated successfully, but these errors were encountered: