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

Words won't display if too much weight #3

Closed
mattdodge opened this issue Nov 19, 2012 · 1 comment
Closed

Words won't display if too much weight #3

mattdodge opened this issue Nov 19, 2012 · 1 comment

Comments

@mattdodge
Copy link

I have found that if you try to put a word with too large of a weight and there is not enough room, the word simply will not display. This is not desirable because it will often affect the most weighted words, causing the cloud to leave out some valuable data.

I fixed this in a local fork by replacing the return false on line 428 of jquery.wordcloud.js with return putWord(word,weight-1)

This will basically continue to try lower and lower weights until it either gets to 0 or finds a weight that it can fit

@timdream
Copy link
Owner

timdream commented Jan 9, 2013

Good idea; could you file the issue on https://github.com/timdream/wordcloud2.js ? Let's add an option for that.

@timdream timdream closed this as completed Jan 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants