PDA

View Full Version : Ext.ux.TagCloud



rpetrello
26 Jul 2007, 8:08 AM
For those interested, I've recently had to write a simple tag cloud that was capable of pulling data from a server-side and having a component-like "refreshable" nature. While these results are early, and there's not much "bling" to it, you can find information on this extension at:

http://extjs.com/learn/Extension:TagCloud
- or -
http://axisfive.net/ext-ux/TagCloud/

Let me know what you think!

brian.moeskau
26 Jul 2007, 4:38 PM
Nice Ryan! Thanks for sharing this extension.

Herm
27 Jul 2007, 3:46 AM
Nice addition :)

DigitalSkyline
29 Jul 2007, 1:35 AM
Thats sick... I had this on my todo list :) great job, I'll have to see how well it fits in my application. Thanks for sharing!

Mark
3 Aug 2007, 9:38 AM
Thanks for sharing, rpetrello!

Btw. for any reason, I can't figuring out, the calculation of the weight doesn't work correctly in my remote example. So i changed the code to


if(weight == this.max)
return 'largest';
if(weight == this.min)
return 'smallest';
if(weight > (parseInt(this.min) + parseInt(this.distribution*2)))
return 'large';
if(weight > (parseInt(this.min) + parseInt(this.distribution)))
return 'medium';
return 'small';
}
Now it works for me too!:D

jannie
21 Mar 2008, 11:18 PM
it seems the demo at http://axisfive.net/ext-ux/TagCloud/ has disappeared, is it available anywhere else?

nicolelee
10 May 2008, 1:02 PM
Is this user extension still available with ext-js ?

thanks !

hansenmc
14 May 2008, 6:03 PM
After some googling, it appears that the TagCloud demo and code are located here: http://ryanpetrello.com/ext-ux/TagCloud/

pkellner
17 Nov 2008, 1:34 PM
I'm thinking that the code in getWeightDistribution has a mistake. I think .count should be [this.weightField] on both lines. At least this makes my code works.

// this.max = records[0].data.count;
// this.min = records[0].data.count;

this.max = records[0].data[this.weightField];
this.min = records[0].data[this.weightField];