PDA

View Full Version : Reload store of a pieChart make the piechart disappear.



marxan
11 Nov 2010, 8:07 AM
Hi,

I'm trying to use the pieChart component.

The first I display my page the piechart displays correcty. When I click on a combo box, In order to reload the value of my store I do the following:



var ChartDiv = Ext.getCmp('chartErrors');
ChartDiv.store.removeAll();
ChartDiv.store.reload({
params: {phase: phase,directorate:directorate,unit:unit}
});
And I soon as i've selected another value, the piechart disappear. The strange thing is that code works fine if I use columnchart instead of pie chart... Does it mean there will be a bug with the piechart?

Any help would be appreciated.

marxan
15 Nov 2010, 5:58 AM
Don't use the ext-all-debug.js and the reloading will do amazingly fine :-)