d3-cloud icon indicating copy to clipboard operation
d3-cloud copied to clipboard

Word cloud inside a "shape"

Open GordonSmith opened this issue 11 years ago • 13 comments
trafficstars

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?

GordonSmith avatar May 30 '14 16:05 GordonSmith

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.

jasondavies avatar Jun 01 '14 16:06 jasondavies

Looking forward to your new work.

754334879 avatar Aug 11 '15 07:08 754334879

:+1: Any updates to this?

Would love to see this features - Like a word cloud in svg-shapes?

CodeBrauer avatar Nov 24 '15 16:11 CodeBrauer

Hi, I'll also will happy to see an update if possible.. thanks alot !

Harelebel avatar Jun 27 '16 12:06 Harelebel

@Harelebel - I used this in project and built a wrapper around this. Not THAT fancy but it worked. GitHub: amueller/word_cloud

CodeBrauer avatar Jun 27 '16 12:06 CodeBrauer

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.

speakerjohnash avatar Jan 13 '17 04:01 speakerjohnash

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.

dalalkrish avatar Sep 18 '17 16:09 dalalkrish

I really love you library. Is there any updates on shaping the word cloud?

ArunanSivanathan avatar Sep 20 '18 11:09 ArunanSivanathan

An update on this?

jhgeluk avatar Oct 22 '18 11:10 jhgeluk

Update?

xiaoyu-zhang-betsy avatar Nov 06 '19 20:11 xiaoyu-zhang-betsy

I'm also interested in shape masking the could. :)

Eraldo avatar Sep 18 '20 10:09 Eraldo

Me too! In the meanwhile, I will check https://github.com/amueller/word_cloud

rodighiero avatar May 12 '21 16:05 rodighiero

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/

rodighiero avatar May 18 '21 11:05 rodighiero