d3-cloud
d3-cloud copied to clipboard
Word cloud inside a "shape"
On the main page of this project you show the cloud in an eclipse, is it possible to put the cloud in a more complex shape (like a map of the USA?).
Also how did you get it in the eclipse?
Not at the moment, but it’s something I’d like to support in future.
The example screenshot just happens to show an elliptical shape, because the algorithm attempts to lay the words out in an elliptical spiral (within the rectangle), and there happened to be the right number and distribution of word sizes to produce this. If there were more words it would end up looking more like a rectangle.
Looking forward to your new work.
:+1: Any updates to this?
Would love to see this features - Like a word cloud in svg-shapes?
Hi, I'll also will happy to see an update if possible.. thanks alot !
@Harelebel - I used this in project and built a wrapper around this. Not THAT fancy but it worked. GitHub: amueller/word_cloud
Really looking to use this feature. It can be done in browser efficiently because wordclouds.com does it. If no one else tackles this I will try as I have plans to shape word clouds.
What would be helpful is some guidance on what I need to modify.
Great work with the library, Jason. I am not able to get the perfect elliptical shape that you are able to get in the screenshot. Can you please share the code of that example screenshot. Thank you.
I really love you library. Is there any updates on shaping the word cloud?
An update on this?
Update?
I'm also interested in shape masking the could. :)
Me too! In the meanwhile, I will check https://github.com/amueller/word_cloud
Me too! In the meanwhile, I will check https://github.com/amueller/word_cloud
If you are interested, I successfully created wordclouds inside shapes without any trouble with Python, you can check code and instance here, https://rodighiero.github.io/SPT2021/