1. #1
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default ux.Media.ChartPack 2.1.2 (Fusion, OFC2, amChart) released.

    ux.Media.ChartPack 2.1.2 (Fusion, OFC2, amChart) released.


    ux.Media ChartPack 2.1.2 is also available on Google Code (SVN).

    Supported Ext Releases


    RC1: (deprecated) Supported Ext Releases: 2.0.x, License: LGPL3
    ChartPack2.1 : Supported Ext Releases: 2.1, 2.2, 3.0, License: GPL3

    A set of ux.Chart Components designed for use with:
    -- InfoSoft's Fusion Charts (Flash)
    -- Open Flash Chart 2 (Flex/Flash)
    -- amChart (and amStock) (Flash)

    All ux.Chart classes come in standard Component Flavors:

    Component, Panel, Portlet, Window

    All charts may also be rendered inline in markup.

    As these classes inherit from the ux.Media/Flash classes (required), it is not necessary to load the SWFObject.js or FusionCharts.js files.

    Examples: While still evolving, are available online:

    See the Fusion.Window demo.
    See the OFC2 demo.

    Fusion Chart Sample with common (to all supported charts) config options:
    PHP Code:
    <head>
      <
    link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
      <
    script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
      <script type="text/javascript" src="lib/ext/ext-all-debug.js"></script>
      <script type="text/javascript" src="lib/ux/uxfusionpak-debug.js"></script>
      <script type="text/javascript">
     Ext.onReady(function(){
       
       fusionPanel = new Ext.ux.Chart.Fusion.Panel({
           title       : 'ux.FusionPanel',
           collapsible : true,
           renderTo    : Ext.getBody(),

           chartCfg   :{ id   : 'chart1'
                         ,params:{
                            flashVars : {
                                debugMode   : 0,
                                lang        :  'EN'
                            }
                         }
                      },
           autoScroll : true,
           id       : 'chartpanel',
           chartURL   : 'fusioncharts/Column3D.swf',
         //dataURL   : 'fusioncharts/data/Column3D.xml' ,  //let the Flash chartObj load it
           autoLoad   :'fusioncharts/data/Column3D.xml' ,  //let Ext autoLoad do the same.

           loadMask  : {msg: 'Loading data...'},
           autoMask : true,

           width     : 500,
           height    : 400,
           listeners :{
              ,chartload : function(p,obj){console.log('chart '+obj.id+' loaded.')},
              ,chartrender : function(p,obj){console.log('chart '+obj.id+' rendered.')}
           },
           tools     : [
                 {id:'gear', handler:function(e,t,p){ p.refreshMedia();},qtip: {text:'Refresh the Chart'}  },
                 {id:'print', handler:function(e,t,p){ p.print();},qtip: {text:'Print the Chart'}  }
               ]
      });
      fusionPanel.show();
     });
    </script>
     </head> 
    Notes:
    (1) The ux.Chart.Fusion classes are compatible with the older FCF (FusionChartsFree) but you won't like the result on IE much (poor rendering quality and weak remote URL loading support).

    (2) RE: Fusion: Answers to questions regarding Fusions chart formatting and XML definition options for charting may be found in their site's forums and documentation.

    (3) RE: OFC2: Answers to questions regarding OFC2 chart formatting and JSON definition options for charting may be found in their site's forums and documentation.

    (4) RE: amCharts: Answers to questions regarding amChart chart formatting and definition options for charting may be found in their site's forums and documentation.

    (5) The 2.1.x distribution now includes a /build path (with JSB build files). Choose you ux[flavor]pak.js for the chart you use, and include that package on your page. It includes all the necessary classes.


    Note: the current vBulletin config gzips attachments which IE hates. Download this with Firefox (or other browser) instead of IE.
    Attached Files
    Last edited by hendricd; 27 Oct 2009 at 5:00 AM. Reason: Release 2.1.2
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  2. #2
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Live example please!!

    Thanks!

  3. #3
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Sorry, its still your Ext-2.x/examples/fusion for now.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  4. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Go with your bad self dude

  5. #5

  6. #6
    Ext User
    Join Date
    Oct 2007
    Posts
    21
    Vote Rating
    0
    smartinec is on a distinguished road

      0  

    Thumbs up


    This is awesome. I did notice that the "Print Chart" toolbar item doesn't appear to work.

  7. #7
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    What browser you on? It works fine for me on IE, FF, Opera, Safari (win).

    What error are you getting, if any?
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  8. #8
    Ext User jerrybrown5's Avatar
    Join Date
    Sep 2007
    Location
    Port St Lucie, FL
    Posts
    185
    Vote Rating
    0
    jerrybrown5 is on a distinguished road

      0  

    Default


    Doug,
    This is really solid. Have you looked at the current Ext 3 implementation of YUI Charts? It would be nice to have a consistent client implementation between Ext charts.

    Here is Jack's sample implementation of the charts in the svn trunk.
    Code:
        var store = new Ext.data.JsonStore({
            fields:['name', 'visits', 'views'],
            data: [
                {name:'Jul 07', visits: 245000, views: 3000000},
                {name:'Aug 07', visits: 240000, views: 3500000},
                {name:'Sep 07', visits: 355000, views: 4000000},
                {name:'Oct 07', visits: 375000, views: 4200000},
                {name:'Nov 07', visits: 490000, views: 4500000},
                {name:'Dec 07', visits: 495000, views: 5800000},
                {name:'Jan 08', visits: 520000, views: 6000000},
                {name:'Feb 08', visits: 620000, views: 7500000}
            ]
        });
    
        new Ext.Panel({
            title: 'ExtJS.com Visits Trend, 2007/2008 (No styling)',
            renderTo: 'container',
            width:500,
            height:300,
            layout:'fit',
    
            items: {
                xtype: 'barchart',
                store: store,
                url: 'charts.swf',
                yField: 'name',
                xField: 'visits'
            }
        });
    Best regards,
    Jerry Brown

  9. #9
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Yes, I've seen Jack's first round in SVN, and I'm contemplating a ux.Chart.YUI interface already. Still wondering what data interfaces to support initially (just Ext.stores ? etc.).

    GWT has already published one for YUI charts (but, data bindings?).

    But, they're so easy to wrap now with the ux.Media/Flash classes.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  10. #10
    Ext User jerrybrown5's Avatar
    Join Date
    Sep 2007
    Location
    Port St Lucie, FL
    Posts
    185
    Vote Rating
    0
    jerrybrown5 is on a distinguished road

      0  

    Default


    Doug,
    All of my data comes in through stores which I share across my application so Databinding or more particular store binding (like how it is done in Jack's implementation) would be preferable to me. Also, it keeps options open since it is easy to populate store with XML or JSON data.

    Best regards,
    Jerry

Thread Participants: 105

  1. galdaka (1 Post)
  2. jay@moduscreate.com (1 Post)
  3. stever (2 Posts)
  4. kubens (2 Posts)
  5. Thylia (3 Posts)
  6. dolittle (1 Post)
  7. alindsay55661 (1 Post)
  8. mystix (13 Posts)
  9. fangzhouxing (2 Posts)
  10. Saeven (1 Post)
  11. cmd.ares (1 Post)
  12. gabbay (2 Posts)
  13. FlexIDX (1 Post)
  14. panosru (19 Posts)
  15. evant (1 Post)
  16. damien (2 Posts)
  17. cmendez21 (2 Posts)
  18. jschick (32 Posts)
  19. wxwdt (4 Posts)
  20. hallikpapa (5 Posts)
  21. ealpha (5 Posts)
  22. ZooKeeper (13 Posts)
  23. brookd (2 Posts)
  24. dante (2 Posts)
  25. newbie23 (2 Posts)
  26. sb32 (8 Posts)
  27. jerrybrown5 (2 Posts)
  28. smartinec (3 Posts)
  29. wm003 (1 Post)
  30. stoober (1 Post)
  31. wdragon27 (1 Post)
  32. stumpy_uk (1 Post)
  33. jebirch (2 Posts)
  34. Ted Gaunt (1 Post)
  35. fmartinez (7 Posts)
  36. CaCtus491 (1 Post)
  37. sigaref (1 Post)
  38. japeth (1 Post)
  39. cprompt (1 Post)
  40. Kangulo (1 Post)
  41. OakGoat (1 Post)
  42. basshcm (3 Posts)
  43. jcmartinez (2 Posts)
  44. John Milton (3 Posts)
  45. Richie1985 (8 Posts)
  46. Rafael (8 Posts)
  47. BlueCamel (11 Posts)
  48. zerodivide (1 Post)
  49. Joyfulbob (3 Posts)
  50. JoyfulBobHome (2 Posts)
  51. Shaguar (11 Posts)
  52. james.tucker (1 Post)
  53. brenda (3 Posts)
  54. nicholasnet (4 Posts)
  55. VinceChen (1 Post)
  56. enihs (2 Posts)
  57. Jinping (1 Post)
  58. Scorpie (1 Post)
  59. errodr (2 Posts)
  60. bwoody (3 Posts)
  61. kuzi (4 Posts)
  62. xblitz (3 Posts)
  63. service@think-1st.de (1 Post)
  64. aserron (10 Posts)
  65. canxss (2 Posts)
  66. dajester2008 (2 Posts)
  67. damien2209 (2 Posts)
  68. SimoAmi (5 Posts)
  69. zeke (2 Posts)
  70. wemerson.januario (3 Posts)
  71. ziuek (3 Posts)
  72. qvrb (2 Posts)
  73. gondrong (15 Posts)
  74. Alex84 (5 Posts)
  75. timhussey (1 Post)
  76. hlimaiem (1 Post)
  77. peturth (3 Posts)
  78. bhasheer (3 Posts)
  79. einavb (6 Posts)
  80. rpnoble (1 Post)
  81. wiem.ok (1 Post)
  82. ebart (1 Post)
  83. hfpmartins (2 Posts)
  84. funkie (2 Posts)
  85. fs060171816 (4 Posts)
  86. iamsanin (1 Post)
  87. Boubalou (7 Posts)
  88. silve69 (7 Posts)
  89. cyan198 (5 Posts)
  90. gimmick66 (2 Posts)
  91. nextdigital (1 Post)
  92. chameleonwebservices (1 Post)
  93. Andre Froes (1 Post)
  94. opdecinc (2 Posts)
  95. JertoZ (2 Posts)
  96. lingz_public (8 Posts)
  97. hnspics (1 Post)
  98. MarcHetu (1 Post)
  99. atulmore (4 Posts)
  100. sraghavachari (3 Posts)
  101. MrSparks (3 Posts)
  102. jayaprasad (1 Post)
  103. Jan (HL) (2 Posts)
  104. HJM (4 Posts)
  105. adammascherin (10 Posts)

Tags for this Thread