Page 1 of 1

TPointSeries: how to get access to all y related to x

Posted: Mon Aug 01, 2005 6:55 pm
by 9236620
Hi,

I have a TPointSeries filled with up to a million points. I have discrete x values and would like to have access to all y values related to an x value (to calculate an average). Min and Max related to the x would work as well. Is there any solution for that?
Thanks, Messie

Posted: Tue Aug 02, 2005 11:22 am
by Pep
Hi Messie,

you could use a similar code to one example I posted into our newsgroups at : news://www.steema.net/steema.public.attachments , you can find it searching for "RE: Click Chart to get Series Value (Matt)" as a Subject. This examples gets the YValue of given XValue for one Serie, but it could be used for more series.