-
Notifications
You must be signed in to change notification settings - Fork 4
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
Important words disappear when it's long #2
Comments
Can you please share working example on https://jsfiddle.net/. |
Of course. Here we go. I changed the width of the div like a responsive page |
You can play with max font or width or height . Meanwhile I will try to put a check, if text is not getting fit using given font, I will try to use smaller font for that. |
Thanks for the support :) |
There's a example it's happening in my code.
The word 'atendimento' disappear when the size of div is about 500px.
I understand that it doesn't fit and it's not something easy, but to my end user it's something bad, because in this case for example it's the second most important word.
Is there some workaround i can do?
$(document).ready(function() { $("#tagcloud-113033").jQWCloud({ words: [{ word: 'produtos', weight: 43 }, { word: 'atendimento', weight: 41 }, { word: 'loja', weight: 29 }, { word: 'qualidade', weight: 27 }, { word: 'sapatos', weight: 21 }, { word: 'cliente', weight: 20 }, { word: 'variedade', weight: 17 }, { word: 'calçados', weight: 14 }, { word: 'numeração', weight: 12 }, { word: 'produto', weight: 10 }, { word: 'diferencial', weight: 8 }, { word: 'excelente', weight: 8 }, { word: 'organização', weight: 8 }, { word: 'closets', weight: 7 }, { word: 'atendente', weight: 7 }, { word: 'modelos', weight: 7 }, { word: 'preço', weight: 7 }, { word: 'ambiente', weight: 6 }, { word: 'lindos', weight: 6 }, { word: 'expostos', weight: 6 }, { word: 'organizada', weight: 5 }, { word: 'separados', weight: 5 }, { word: 'melhor', weight: 5 }, { word: 'atendentes', weight: 5 }, { word: 'justo', weight: 5 }, { word: 'atenção', weight: 4 }, { word: 'facilita', weight: 4 }, { word: 'número', weight: 4 }, { word: 'forma', weight: 4 }, { word: 'grande', weight: 4 }, { word: 'ótimo', weight: 4 }, { word: 'além', weight: 4 }, { word: 'vendedora', weight: 4 }, { word: 'venda', weight: 4 }, { word: 'sapato', weight: 4 }, { word: 'disposição', weight: 4 }, { word: 'bolsas', weight: 4 }, { word: 'sendo', weight: 4 }, { word: 'variados', weight: 4 }, { word: 'confortáveis', weight: 4 }, { word: 'clientes', weight: 4 }, { word: 'confortável', weight: 3 }, { word: 'legal', weight: 3 }, { word: 'sempre', weight: 3 }, { word: 'geral', weight: 3 }, { word: 'lojas', weight: 3 }, { word: 'pela', weight: 3 }, { word: 'isso', weight: 3 }, { word: 'opções', weight: 3 }, { word: 'ótima', weight: 3 }, { word: 'oferecem', weight: 3 }, { word: 'constance', weight: 3 }, { word: 'atendida', weight: 3 }, { word: 'gostei', weight: 3 }, { word: 'agradável', weight: 3 }, { word: 'diversos', weight: 3 }, { word: 'deixar', weight: 3 }, { word: 'vontade', weight: 3 }, { word: 'certeza', weight: 3 }, { word: 'vitrine', weight: 3 }, { word: 'educadas', weight: 3 }, { word: 'comprar', weight: 3 }, { word: 'prestativa', weight: 2 }, { word: 'divididos', weight: 2 }, { word: 'todas', weight: 2 }, { word: 'atendem', weight: 2 }, { word: 'realmente', weight: 2 }, { word: 'forte', weight: 2 }, { word: 'simpáticas', weight: 2 }, { word: 'precisar', weight: 2 }, ], minFont: 12, maxFont: 60, fontOffset: 0, verticalEnabled: true, padding_left: 1, }); });
The text was updated successfully, but these errors were encountered: