PDA

View Full Version : Pie Chart Label



madhavan
27 Mar 2011, 11:12 PM
hi ,
I am using ext js pie chart . I have to display label My code is as follow any one help me please

my store :
var store = new Ext.data.JsonStore({
fields: ['season', 'total'],url:'get-images.jsp?req=getDistributedPhaseTimings',timeout: 120000
});

My Chart coding is like this

new Ext.Panel({
width: (viewSize.width * .242),
height: (viewSize.height * .331),
header:true,
title: 'Planned Phases composition',
renderTo: 'chart5',
items: {
store: store,
xtype: 'piechart',
dataField: 'total',
categoryField: 'season',
//extra styles get applied to the chart defaults
extraStyle:
{
legend:
{
display: 'bottom',
padding: 5,
font:
{
family: 'Tahoma',
size: 4
}
},label: {
field: 'season',
display: 'middle',
contrast: true
}
}
/*,
//extra styles get applied to the chart defaults
extraStyle:
{
legend:
{
display: 'bottom',
padding: 5,
font:
{
family: 'Tahoma',
size: 13
}
}
}*/
}
});


please suggest me