My contemplations and diurnal novelties are publicized here

Archive for the ‘Ext JS’ Category

Adding label to ExtJs Pie Chart other than legend

I do run into a problem where i have to show label on pie chart other than captions on legend. Some what like below

My Team lead researched and found a way to do so

label: {
field: ‘name’,
display: ‘rotate’,
contrast: true,
renderer: function (label)
// this will change the text displayed on the pie
var cmp = Ext.getCmp(‘chartCmpRedemption’); // id of the chart
var index =‘name’, label); // the field containing the current label
var data =;
return data.data1; // the field containing the label to display on the chart


%d bloggers like this: