PDA

View Full Version : Extjs 3.x Chart Load Issue



22 Jan 2014, 7:11 AM
Hi Guys,

I am starting with ExtJS 3.x chart (line, bar etc..). I have done something like this...
Base Class :
app.charts.AppBaseChart = Ext.extend (Ext.Panel, {
initComponent : function () {...}
buildStore : function() {....}
buildChart : function() {....}
});
Sub-Class : # 1
app.charts.AppLineChart = Ext.extend(app.charts.AppBaseChart, {
.....
});
Ext.reg('appline_chart', app.charts.AppLineChart);

Sub-Class : # 2
app.charts.AppBarChart = Ext.extend(app.charts.AppBaseChart, {
.....
});
Ext.reg('appbar_chart', app.charts.AppLineChart);

Charts are rendering fine on load. But, I have two checkbox at toolbar, on click charts should load on the panel. Could you please suggest....
1. How I can add handler to those checkbox so that charts will be loaded on same panel ?
2. And also on load charts are rendering after some time means slow rendering. Is there anything for auto refresh.

mitchellsimoens
31 Jan 2014, 3:25 PM
So you want to add the chart to the panel or load the store for the chart?