How can i alter the label over a sprite?I found that inside series i can have the following and i can alter the renderer but the problem is that i also need the corresponding storeitem.
label: {
display: 'insideEnd',
field: 'litres',
renderer: function(n) {
return n;
},
orientation: 'horizontal',
color: '#333',
'text-anchor': 'middle'
}
I also found here that there are two functions: onCreateLabel and onPlaceLabel but i don’t find the way to use them.
Any help?
onCreateLabel and onPlaceLabel are used in series config. You have to do something like this:
Copy and Paste onCreateLabel and onPlaceLabel from the code above (or the ExtJS source) then change them the way you want.