View Full Version : PieChart wont display

3 Jun 2009, 12:30 AM
I am a bit confused. I am trying to get the PieChart to work but it seems its unwilling to surrender ;) I have been reading all the threads about the piechart in the forum but i cant find out what wrong with my code.

If i change 'piechart' to 'linechart' the chart and the binded data is displayed properly. So that verifes that the store has data and that the store is properly binded to the chart.

I dont see what i am doing wrong so any help is much appreciated.

initComponent: function() {

this.datastore = dataStore({
proxy: new Ext.data.HttpProxy({url: cakeAction(this.controller, this.action)}),
reader: new Ext.data.JsonReader({
root: 'result',
fields: [{
name: 'zzp_id',
type: 'int'
name: 'zzp_name',
type: 'string'
name: 'count',
type: 'int'
autoLoad: false

Ext.apply(this, {
layout: 'fit',
xtype: 'piechart',
height: 200,
width: 200,
store: this.datastore,
xField: 'zzp_name',
yField: 'count',
categoryField: 'zzp_name',
dataField: 'count',
url: webrootUrl('/ext/resources/charts.swf')

ECDPlus.OverviewPartPanel.superclass.initComponent.apply(this, arguments);