Page 1 of 1

How to make sure TLineSeries ValueIndex is returned.

Posted: Tue Oct 13, 2009 12:28 am
by 10052502
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.

Re: How to make sure TLineSeries ValueIndex is returned.

Posted: Tue Oct 13, 2009 12:32 am
by 10052502
Answered my own question. Draw the LineSeries as the last series and it will be on top.

Re: How to make sure TLineSeries ValueIndex is returned.

Posted: Wed Oct 14, 2009 10:13 am
by yeray
Hi swesty,

I'm happy to see that you found a solution yourself.