My contemplations and diurnal novelties are publicized here

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



Comments on: "Adding label to ExtJs Pie Chart other than legend" (2)

  1. […] (Note: – if you don’t know how to add label to pie chart refer to my previous article here.) […]

  2. I love you for addding this.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: