Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: [1.0.1] Ext.ux.GoogleChart

  1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    31
    Vote Rating
    0
      0  

    Post [1.0.2] Ext.ux.GoogleChart

    Class wrapper for Google Chart API.

    Before run example control ExtJs path in html file.

    Let me know what do you think.

    Thank you.
    Cumpa

    [1.0.2] 11/04/2008
    Added repaint method:
    Call repaint for updating chart with updated data.

    [1.0.1] 05/16/2008
    Added store config for reading data:
    The record must contains "id" field and "chartdata" field; see new "googlechartstore" example for more info. This exemple must run under a web server (ex: "http://localhost/googlechart/googlechartstore.html").
    Attached Files Attached Files

  2. #2
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Espaa
    Posts
    215
    Vote Rating
    0
      0  

    Default

    I've tried your example, I think that it's what i was looking for, I'll try it on my app

    Thanks

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Espaa
    Posts
    215
    Vote Rating
    0
      0  

    Default

    Hi cumpa

    Your extension works fine but I'd like to know if there is any way to pass data from a store, I mean, is possible to create a json and pass it as data for the charts?

    Thanks a lot

  4. #4
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461
    Vote Rating
    0
      0  

    Default

    <script type="text/javascript" src="../Ext.ux.GoogleChart.js"></script>
    i changed the original to this is some servers (like mine) are case sensitive when readiung file names.

    Great extension btw!

    Tnx

  5. #5
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by vizcano View Post
    Hi cumpa

    Your extension works fine but I'd like to know if there is any way to pass data from a store, I mean, is possible to create a json and pass it as data for the charts?

    Thanks a lot
    There is also an array reader for a store as well is there not? but yes the next step will be to integrate this with a store the two really go hand in hand.

    PHP Code:
    var pie = new Ext.ux.GoogleChart({
        
    chartType:"pie3d",
        
    dataType:"extended",
        
    title:"Chart+Title",
        
    labels:["Hello","World"],
        
    store: new Ext.data.Store({
            
    url'index.php?&storeID=1234',
            
    autoLoad true,
            
    reader: new Ext.data.JsonReader({
                
    root'data'
            
    })
        })
      }); 
    would be cool, or something like it...

  6. #6
    Sencha User
    Join Date
    Apr 2007
    Posts
    31
    Vote Rating
    0
      0  

    Default

    At this moment there isn't "store" config but it's a good idea.
    I'm a little busy and if anyone want to post the patch i can create a google project or put the patch in original source code adding the author.

    Thx
    Cumpa

  7. #7
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Espaa
    Posts
    215
    Vote Rating
    0
      0  

    Default

    Any ideas of how to do it? I'd like to try it with a store

  8. #8
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Espaa
    Posts
    215
    Vote Rating
    0
      0  

    Default

    No ideas?

  9. #9
    Sencha User
    Join Date
    Apr 2007
    Posts
    31
    Vote Rating
    0
      0  

    Default

    Have you seen the first post?

  10. #10
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Espaa
    Posts
    215
    Vote Rating
    0
      0  

    Default

    OMG!!! I'm blind

    Thanks a lot

Page 1 of 3 123 LastLast

Posting Permissions

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