Results 1 to 2 of 2

Thread: about Ext.ux.Chart.Fusion.Panel

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    30

    Question about Ext.ux.Chart.Fusion.Panel

    I have a problem about "Ext.ux.Chart.Fusion.Panel".First I load a data to the chart panel,then i click a button to load the second data into the chart panel,but when I change the browser size , the chart data will auto change to the first data .Why does it change auto.I spent a lot of time on it,but i still can not find the reason.How can i do when the browser change size to keep the current data in the chart panel. This is my part code :
    Code:
    var PerformanceCPUFusion = Ext.extend(Ext.ux.Chart.Fusion.Panel, {
     constructor : function(config) {
      PerformanceCPUFusion.superclass.constructor.call(this,  Ext.apply({
       border : false,
       height : 250,
       chartURL : Eway.FUSION_SWF_URL + '/widget/RealTimeArea.swf  ',
       chartData : this.getXml(),
       disableCaching : false,
       chartCfg : { 
        id : "memoryChart" ,
        params : {
         flashVars : {
          debugMode : 0,
          lang : 'EN'
         },
         renderOnResize : false
        }
       },
      }, config));
     },
    .......

  2. #2
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966

    Default

    Use a reference to your data generator, and chart class will call that function as needed:

    Code:
    chartData : this.getXml,  //function reference
    Please post your code samples wrapped in Forum [code/] tags.
    "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.


Similar Threads

  1. Ext.ux.Chart.Fusion.Panel doesn't render the chart!
    By stranieroinpatria in forum Ext 2.x: User Extensions and Plugins
    Replies: 2
    Last Post: 16 Dec 2010, 4:53 AM
  2. Fusion Panel for Fusion Charts
    By durlabh in forum Community Discussion
    Replies: 7
    Last Post: 14 Jan 2010, 5:54 PM
  3. loading fusion chart in ext Js tab a problem?
    By tkm in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 1 Apr 2008, 6:21 PM

Tags for this Thread

Posting Permissions

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