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

support text wrapping inside of circles #5

Open
davelandry opened this issue Feb 19, 2016 · 5 comments
Open

support text wrapping inside of circles #5

davelandry opened this issue Feb 19, 2016 · 5 comments

Comments

@davelandry
Copy link
Member

No description provided.

@JonathanTR
Copy link

Any progress on this? I'm stuck on a project for work that could really use this feature and don't want to reinvent the wheel. What would be needed to get it out the door?

@davelandry
Copy link
Member Author

No specific updates on this, but it shouldn't be too hard to implement.

The width in this if statement needs to be determined based on the current line of text that is being flowed, because the lines towards the top and the bottom of a circle are naturally shorter.

I'm sure there will be some weird edge cases, but that's basically it. Pull requests are welcome, but if not, these notes will serve as my starting point once I get the time to do it 😏

@grozadanut
Copy link

Was there any progress made on this feature? I have a project that really relies on this wrapping of text inside circles as well. The old version of d3plus(version 1) supported wrapping inside circle with the textwrap and shape:'circle' attribute, but I don't find this feature in the new version neither on TextBox or textWrap.

@davelandry
Copy link
Member Author

@gdany95 no specific progress here, but a naive approach has been added to d3plus-shape to display labels in Circles. It currently wraps the text within a square that fits within the bounds of the circle: d3plus/d3plus-shape@8445dac

@davelandry davelandry added this to To do in 1.0 Feb 26, 2018
@davelandry davelandry added this to To do in d3plus via automation May 14, 2019
@antonkatz
Copy link

So this used to be possible, but I can't find a way in the current version! What happened?

https://gist.github.com/markvital/f06695481347c004a20af5a5db0a9da8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
d3plus
  
To do
1.0
  
To do
Development

No branches or pull requests

4 participants