wordcloud2.js icon indicating copy to clipboard operation
wordcloud2.js copied to clipboard

Any way to have two of the same word?

Open eggers opened this issue 10 years ago • 2 comments

I'd like to display the same word multiple times with different sizes (i'm using coloring to differentiate between one instance and another) is there any way of doing that in the current api?

The reasoning behind doing this is that I want to combine the word clouds of two documents into a single cloud, but still be able to see the difference in relative frequency between two instances of say "good".

eggers avatar Oct 23 '15 21:10 eggers

Sorry for the late reply. You could pass a function into the color option and set the color there, but I admit it would need a little more filtering in the function to figure out the right color should be for the current passed word.

Maybe you could make some suggestions on the API?

timdream avatar Jan 03 '16 07:01 timdream

If you would pass the item instead of the word, then further criteria could be provided to the color function. We need something similar.

bwl21 avatar Mar 04 '19 14:03 bwl21