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

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Messie
Newbie
Newbie
Posts: 34
Joined: Wed Apr 13, 2005 4:00 am
Location: Goettingen, Germany

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

Post by Messie » Mon Aug 01, 2005 6:55 pm

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

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 02, 2005 11:22 am

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.

Post Reply