Yes, I can get right values by tracing String(data.text)
--- In [email protected], thomas parquier <mailingli...@...> wrote:
>
> I de-activated canStagger and auto-rotation... but I remember fonts had to
> be embedded to get thoses features... but not to get them showing up, sorry.
> I will quickly set up a sample chart with custom labelrenderer. Did you
> trace String(data.text) ?
>
> ---
> 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/16 pullzmag <deegregg_ml...@...>
>
> >
> >
> > Thomas, did you have a chance to look at that project?
> >
> > Thanks
> >
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>, thomas
> > parquier <mailinglists@> wrote:
> > >
> > > There's an issue with canStagger, rotation and fonts of labels along an
> > > axisrenderer.
> > > I look back at a previous work.
> > >
> > > ---
> > > thomas parquier
> > > http://www.web-attitude.fr/realisations/
> > > msn : thomas.parquier@
> > > softphone : sip:webattitude@ <sip%3Awebattitude@>
> > > téléphone portable : +33601 822 056
> > >
> > >
> > > 2010/4/14 pullzmag <deegregg_mlist@>
> > >
> > > >
> > > >
> > > > No, just a standard label, with a default font that is also used and
> > > > working correctly in other parts of the application.
> > > >
> > > >
> > > > --- In [email protected]
> > > > <flexcoders%40yahoogroups.com><flexcoders%
> > 40yahoogroups.com>, thomas
> > > > parquier <mailinglists@> wrote:
> > > > >
> > > > > Did you set any rotation to labels ?
> > > > >
> > > > > ---
> > > > > thomas parquier
> > > > > http://www.web-attitude.fr/realisations/
> > > > > msn : thomas.parquier@
> > > > > softphone : sip:webattitude@ <sip%3Awebattitude@>
> > > > > t̮'̩l̮'̩phone portable : +33601 822 056
> > > > >
> > > > >
> > > > > 2010/4/14 pullzmag <deegregg_mlist@>
> > > > >
> > > > > >
> > > > > >
> > > > > > Yes, even with validateNow()
> > > > > >
> > > > > >
> > > >
> > > > > > --- In [email protected]
> > > > > > <flexcoders%40yahoogroups.com><flexcoders%
> > 40yahoogroups.com><flexcoders%
> >
> > > > 40yahoogroups.com>, thomas
> > > > > > parquier <mailinglists@> wrote:
> > > > > > >
> > > > > > > even with a validateNow() upon label ?
> > > > > > >
> > > > > > > ---
> > > > > > > thomas parquier
> > > > > > > http://www.web-attitude.fr/realisations/
> > > > > > > msn : thomas.parquier@
> > > > > > > softphone : sip:webattitude@ <sip%3Awebattitude@>
> > > > > > > tÃÆ'Ã'ÃâélÃÆ'Ã'Ãâéphone portable : +33601 822 056
> > > > > > >
> > > > > > >
> > > > > > > 2010/4/13 pullzmag <deegregg_mlist@>
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I have tried your tip with the first label. The label is placed
> > > > > > correctly
> > > > > > > > (I traced its x and y values) but it's not showing up. The
> > updated
> > > > > > class:
> > > > > > > >
> > > > > > > > package com
> > > > > > > >
> > > > > > > > {
> > > > > > > > import mx.controls.Label;
> > > > > > > > import mx.core.IDataRenderer;
> > > > > > > > import mx.core.UIComponent;
> > > > > > > > import mx.events.FlexEvent;
> > > > > > > >
> > > > > > > > public class CustomLabelRenderer extends UIComponent implements
> > > > > > > > IDataRenderer
> > > > > > > > {
> > > > > > > > private var _data:Object;
> > > > > > > > private var _labelYear:Label;
> > > > > > > >
> > > > > > > > public function CustomLabelRenderer()
> > > > > > > > {
> > > > > > > > super();
> > > > > > > > }
> > > > > > > >
> > > > > > > > [Bindable("dataChange")]
> > > > > > > >
> > > > > > > >
> > > > > > > > public function get data():Object
> > > > > > > > {
> > > > > > > > return _data;
> > > > > > > > }
> > > > > > > >
> > > > > > > > override protected function createChildren():void
> > > > > > > > {
> > > > > > > > super.createChildren();
> > > > > > > >
> > > > > > > > _labelYear = new Label();
> > > > > > > >
> > > > > > > > addChild(_labelYear);
> > > > > > > >
> > > > > > > > }
> > > > > > > >
> > > > > > > > public function set data(value:Object):void
> > > > > > > > {
> > > > > > > > _data = value;
> > > > > > > >
> > > > > > > > dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > > > > > > >
> > > > > > > > if(value != null)
> > > > > > > > {
> > > > > > > > _labelYear.text = String(value.text);
> > > > > > > >
> > > > > > > > }
> > > > > > > > }
> > > > > > > > }
> > > > > > > > }
> > > > > > > >
> > > > > > > > --- In
> > > > > > > > [email protected]<flexcoders%40yahoogroups.com><flexcoders%
> > 40yahoogroups.com><flexcoders%
> > > > 40yahoogroups.com><flexcoders%
> > > >
> > > > > > 40yahoogroups.com>, thomas
> > > > > > > > parquier <mailinglists@> wrote:
> > > > > > > > >
> > > > > > > > > I think your renderer should extend a uicomponent by adding
> > to
> > > > labels
> > > > > > > > > components within.
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > > thomas parquier
> > > > > > > > > http://www.web-attitude.fr/realisations/
> > > > > > > > > msn : thomas.parquier@
> > > > > > > > > softphone : sip:webattitude@ <sip%3Awebattitude@>
> > > > > > > > > tÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡ÃâélÃÆ'Ã'Ãâ 'ÃÆ'ââ¬Å¡Ãâéphone
> > > > > > > > > portable : +33601 822
> > 056
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2010/4/13 pullzmag <deegregg_mlist@>
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 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
> > > > > > > > > > [email protected]<flexcoders%40yahoogroups.com>
> > <flexcoders%40yahoogroups.com><flexcoders%
> > > > 40yahoogroups.com><flexcoders%
> > > > > > 40yahoogroups.com><flexcoders%
> > > > > >
> > > > > > > > 40yahoogroups.com>, thomas
> > > > > > > >
> > > > > > > > > > parquier <mailinglists@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > where do you take labels from ?
> > > > > > > > > > >
> > > > > > > > > > > thomas parquier
> > > > > > > > > > > ---
> > > > > > > > > > > http://www.web-attitude.fr/realisations/
> > > > > > > > > > > msn : thomas.parquier@
> > > > > > > > > > > softphone : sip:webattitude@ <sip%3Awebattitude@>
> > > > > > > > > > >
> > tÃÆ'Ã'Ãâ 'ÃÆ'ââ¬
> > 'ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâélÃÆ'Ã'Ãâ 'ÃÆ'ââ¬
> > 'ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡Ãâéphone
> > portable : +33601 822
> >
> > > > 056
> > > >
> > > > > >
> > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2010/4/13 pullzmag <deegregg_mlist@>
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Any ideas guys?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --- In
> > > > > > > > > > > > [email protected]<flexcoders%40yahoogroups.com>
> > <flexcoders%40yahoogroups.com>
> > > > <flexcoders%40yahoogroups.com><flexcoders%
> > > > > > 40yahoogroups.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.
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>