PDA

View Full Version : Issue with xtype and charts



sarabjeetd
20 Mar 2012, 2:34 AM
I have panel which contains a chart as a child component. It has a alias, say , shared_TimeChart.
In the main view, the panel contains 3 chart panels for different type of charts.
The problem is that when I load one chart with data, all three charts show the same data.

Here is the main view definition.


Ext.define('DiagApp.view.desktop.probe.ProbeSummaryTable', {
extend: 'Ext.panel.Panel',
alias: 'widget.probe_summarytable',
title: 'Probe Summary Page',
items: [{
region: 'center',
title: 'Probe Table',
xtype : 'panel',
flex: 3
},
{
region: 'south',
split: true,
layout: 'border',
height: '50%',
frame: false,
items: [{
region: 'center',
title: 'Volume',
xtype: 'shared_TimeChart',
id: 'shared_TimeChartCenterGraphId',
flex: 1
},{
region: 'west',
title: 'Latency',
xtype: 'shared_TimeChart',
id: 'shared_TimeChartWestGraphId',
flex: 1
},{
region: 'east',
title: 'CPU',
xtype: 'shared_TimeChart',
id: 'shared_TimeChartEastGraphId',
flex: 1
}]
}],
initComponent: function() {
this.callParent(arguments);
}
});

mitchellsimoens
20 Mar 2012, 8:55 AM
Are they sharing the same store instance?

sarabjeetd
20 Mar 2012, 12:27 PM
No, each chart has its own store.