Try LineSeriesItem(h.chartItem).yValue

 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Zhu Haifeng
Sent: Monday, April 23, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Identifying line series for datatip function

 

Hi I'm having the same problem here, but I still haven't figured out
how to deal with it.

After calling LineSeries(h.element).yField, I got the name of the data
series, which is great. But how do I then retrieve the y value of this
data series for the datatip?

For example, I get "DATE" after calling LineSeries(h.element).yField,
and the conventional way to display the y value in the datatip is to
do h.item.DATE. How do I attach "DATE" to h.item.?

Thanks a lot!!!! 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "yaagcur" <[EMAIL PROTECTED]> wrote:
>
> Thanks v much
> That set me on the correct path
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "pasflex" <pswiss@> wrote:
> >
> > try
> > trace (LineSeries(h.element).yField)
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "yaagcur" <agcur@> wrote:
> > >
> > > To elaborate I want to do something like
> > > 
> > > public function dtFunc(h:HitData):String {
> > > 
> > > trace (h.chartItem.element.yField);
> > > 
> > > }
> > > but there is no property yField
> > > 
> > > You used to be able to do
> > > obj.hitData.chartItem.element.yField
> > > 
> > > but I think that is no longer available and the chartItemEvent
also
> > > has not proven the answer to date
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "yaagcur" <agcur@> wrote:
> > > >
> > > > On a line chart with multiple series, I wish to have a datatip
> > > > function that differs according to which line is hit but I'm 
> > having
> > > > difficulty identifying the property that would tell me that
> > > > Any help much appreciated
> > > >
> > >
> >
>

 

Reply via email to