PDA

View Full Version : about Ext.ux.Chart.Fusion.Panel



luoyu
2 Aug 2010, 5:35 PM
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 :


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));
},
.......

hendricd
3 Aug 2010, 7:07 AM
Use a reference to your data generator, and chart class will call that function as needed:


chartData : this.getXml, //function reference
Please post your code samples wrapped in Forum [code/] tags.