I am developing a chart in the flex and i want to have customized legend labels. Customized in the sense that if i bind certain data source to the chart then it will show x axis labels into the legends by default.
So for example,
By default it shows legends like this : 2011, 2012, 2013
How i want to make them display is : 2011 ( 30% ), 2012 ( 40%), 2013 ( 12.45%) and so on.
I googled my problem but was not able to get the exact solution what i was looking for. Can anyone please tell how can i achieve this thing?
addLegendItem()at line 6081 (WTF, 6000+ lines for this "simple" object!?). In this method it is receiving some chart object from the chart and getting the label. If you run this through the debugger, I'm guessing you can find some way to get the percentage and add it to the label (on line 6087). I'd do this, but you haven't provided any code (ie: what kind of chart, etc) so I'm not going to bother guessing at what that "some chart object" is and what your data looks like. - Sunil D.