Results 1 to 9 of 9

Thread: Ext.ux.TagCloud

  1. #1

    Default Ext.ux.TagCloud

    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!

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4

    Default

    Nice Ryan! Thanks for sharing this extension.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    90

    Default

    Nice addition

  4. #4
    Ext User DigitalSkyline's Avatar
    Join Date
    Apr 2007
    Location
    Rochester, MI
    Posts
    461

    Default

    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!

  5. #5
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65

    Default

    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
    Code:
    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!

  6. #6

    Default demo?

    it seems the demo at http://axisfive.net/ext-ux/TagCloud/ has disappeared, is it available anywhere else?

  7. #7

    Post Code ?

    Is this user extension still available with ext-js ?

    thanks !

  8. #8
    Ext JS Premium Member hansenmc's Avatar
    Join Date
    Dec 2007
    Posts
    4

    Default re: Code?

    After some googling, it appears that the TagCloud demo and code are located here: http://ryanpetrello.com/ext-ux/TagCloud/

  9. #9
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    834

    Default Problem in getWeightDistribution

    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];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •