PDA

View Full Version : Label renderer, onCreateLabel never called



ben.gillis
12 Jan 2012, 3:06 PM
I need to create a label on-the-fly as the graph is generated. But, label renderer and onCreateLabel are never called back.

label renderer seems easy enough:

label: {
renderer: function (value) {
... // this is never called!
}

the onCreateLabel is not called either (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.chart.Label).

An example would be most helpful.

mitchellsimoens
13 Jan 2012, 7:57 AM
http://docs.sencha.com/ext-js/4-0/#!/example/charts/Bar.html

That uses the renderer config on the label object.