How to make sure TLineSeries ValueIndex is returned.
Posted: 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.
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.