How to make sure TLineSeries ValueIndex is returned.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
swesty
Newbie
Newbie
Posts: 14
Joined: Tue Feb 17, 2009 12:00 am

How to make sure TLineSeries ValueIndex is returned.

Post by swesty » Tue Oct 13, 2009 12:28 am

Hi,

I have a TChart and on it I draw a TLineSeries and a TAreaSeries. How can I make sure I get the ValueIndex of the TLineSeries in the OnClick event if the TAreaSeries overlaps the TLineSeries??
What happens currently is that the ValueIndex always returns 0 when I draw both the TAreaSeries and the TLinesSeries because the AreaSeries is drawn over the TLineSeries.
However if I only draw the TlineSeries I get the correct ValueIndex of 6. Any help would be much appreciated.

swesty
Newbie
Newbie
Posts: 14
Joined: Tue Feb 17, 2009 12:00 am

Re: How to make sure TLineSeries ValueIndex is returned.

Post by swesty » Tue Oct 13, 2009 12:32 am

Answered my own question. Draw the LineSeries as the last series and it will be on top.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to make sure TLineSeries ValueIndex is returned.

Post by Yeray » Wed Oct 14, 2009 10:13 am

Hi swesty,

I'm happy to see that you found a solution yourself.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply