jQuery.awesomeCloud.plugin
jQuery.awesomeCloud.plugin copied to clipboard
Possible to specifiy max/min sizes?
My data contains a large range of word counts. For instance, there is one word that occurs 1000 times and lots of words that occurs only 20-30 times.
This results in nothing being displayed. Tweaking the "factor" allows me to display some of them. I guess it's because the 1000-times word gets scaled to much and simply disappears and the small ones gets, well, too small to display.
So, I'm wondering if it's possible to either specify a max/min font size. Or (preferable) saying that the font sizes should not be calculated linearly, maybe using "log n" or sqrt(n) or something like that.
Something like this perhaps: http://www.jasondavies.com/wordcloud
This should be possible to do. The normalize
option was intended to allow this kind of list to work, but it's not intelligent enough to handle the ratio you're throwing at it.
I will be improving the normalize
function (issue #12) in the near future, which will hopefully help with this (I'll make sure to test with outliers like yours).