Hi,
I use the "renderer" method of the "label" property of my axe I define in a chart to define a custom value to return as such :
Code:
{
type: 'Category',
position: 'bottom',
fields: ['flow'],
label: {
renderer: function(value) {
return (value == "upstream") ? "Upstream" : "Downstream";
}
},
title: this.bottomAxeTitleText
}
That does the trick, but I normally avoid setting such values deep inside the code. I use "xxxText" public properties for that, which can then be internationalized as well.
Problem is, inside the renderer method, I don't have any scope to the axe instance. Looking at the doc doesn't reveal any such property either.
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.chart.series.Column
Is there any way to accomplish this ? I'm thinking of setting these as static properties but I'm not sure if that's the right way to do so.
Thanks,
Alexandre