Bug #2746
openWTagCloud
0%
Description
Hello,
I am trying to build a new Class WTagCloud like the one written in Java : http://www.wordle.net/
Any guidance on how to do it using WLabel or WText elements ? is someone else interested in ?
BR
Updated by Wim Dumon over 9 years ago
That's probably difficult without some client-side JavaScript. Problem is that we don't know the properties of the font installed at the client if we need to calculate positions at the server.
You'll probably get better results when drawing on a WPaintedWidget server-side (raster image), which does provide font metrics.
BR,
Wim.
Updated by Momo LALMI over 9 years ago
Hi,
There is an open source and free for commercial use, simple but efficient JQuery component for Tag Clouds, the project is called "jQCloud" https://github.com/lucaong/jQCloud
to use it, take a look on : https://github.com/lucaong/jQCloud/blob/master/examples/index.html
for a demo : http://www.lucaongaro.eu/demos/jqcloud/
What is the easiest way to embed it into a WT Class ?
BR
Updated by Wim Dumon over 9 years ago
Hi,
I didn't look in detail, but it should be similar to what I wrote in http://redmine.emweb.be/boards/2/topics/8693
BR,
Wim.