Thank you.
I was able to set the name parameter.
<mx:series>
<mx:AreaSeries name="line1" ...../>
<mx:AreaSeries name="line2" ...../>
</mx:series>
Then access the name parameter in my datatipfunction
private function mydatatip(hd:HitData):String {
if(hd.chartItem.element.name == .....
}
Much appreciate the help,
Claude
--- In [email protected], "Sunil Bannur" <[EMAIL PROTECTED]> wrote:
>
> The hitdata parameter to the datatip function has the chartitem for
> which the datatip needs to be shown, chartitem has the element to which
> series it belongs to.
>
>
>
> Thanks
>
> -Sunil
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of generalxxaxx
> Sent: Thursday, October 04, 2007 11:47 AM
> To: [email protected]
> Subject: [flexcoders] Question about use of datatipFunction in AreaChart
> with multiple AreaSeries
>
>
>
> I would like to customize the datatip on a chart that has two
> AreaSeries.
>
> Problem is, I can not tell which line in the series is being painted
> at the point the datatipFunction is called. And I wanted the datatip
> to have different text depending upon which line was involved.
>
> Is there a solution for this?
>
> Regards,
> Claude
>