PDA

View Full Version : [OPEN][PR3] Pie Chart no labelRenderer



mitchellsimoens
10 Mar 2011, 9:05 AM
In the API docs, it says in both Ext.chart.series.Pie and Ext.chart.Labels that you can specify a labelRenderer function however it did not work. Looking into the source, there was just mentions of it in the source.

mitchellsimoens
10 Mar 2011, 12:36 PM
Turns out you specifiy the label renderer this way:



label : {
field : "name",
display : "rotate",
renderer: function(val) {
return val;
}
},

The value of the label is the only param. Would like the record added as a param though.

PranKe01
23 Feb 2012, 2:39 AM
+1 !!!
What if I would not just render the name, but also the percentage of the piece? is there any way to manage that right now with ExtJS 4.07. or 4.1beta?