I think your renderer should extend a uicomponent by adding to labels components within.
--- thomas parquier http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net <sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2010/4/13 pullzmag <deegregg_ml...@poczta.fm> > > > The first one is the default one. The second one is retrieved from an > array. So I have no problem with retrieving their values but having > displayed the second one. I have been using the below class, assigned as > labelRenderer > > package com > { > import mx.charts.AxisLabel; > import mx.controls.Label; > import mx.core.IDataRenderer; > > public class CustomLabelRenderer extends Label implements IDataRenderer > { > private var _data:AxisLabel; > > public function CustomLabelRenderer() > { > super(); > } > > override public function get data():Object > { > return _data; > } > > override public function set data(value:Object):void > { > if(value != null) > { > this._data = value as AxisLabel; > this.text = String(value.text); > } > } > } > } > > Basically, the above class does nothing special. It just displays the same > label as in case where no labelRenderer is defined. I was trying to add to > this class another label for storing the second value but that label was not > displayed at all (whether by adding as a child to the first label or to the > axis renderer). > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, thomas > parquier <mailingli...@...> wrote: > > > > where do you take labels from ? > > > > thomas parquier > > --- > > http://www.web-attitude.fr/realisations/ > > msn : thomas.parqu...@... > > softphone : sip:webattit...@... <sip%3awebattit...@...> > > téléphone portable : +33601 822 056 > > > > > > 2010/4/13 pullzmag <deegregg_ml...@...> > > > > > > > > > > > Any ideas guys? > > > > > > > > > --- In flexcoders@yahoogroups.com > > > <flexcoders%40yahoogroups.com><flexcoders% > 40yahoogroups.com>, > > > > "pullzmag" <deegregg_mlist@> wrote: > > > > > > > > For my line chart I need a "label" which will be made of two labels. > I > > > was trying to use custom labelRenderer where I added another label but > this > > > either not possible or I did something wrong. Can you give me some tips > for > > > doing this in a right way? > > > > > > > > Thanks! > > > > G. > > > > > > > > > > > > > > > > > >