Probably Stupid Question - Calculate Y from X

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Simon
Newbie
Newbie
Posts: 5
Joined: Wed Nov 05, 2003 5:00 am

Probably Stupid Question - Calculate Y from X

Post by Simon » Wed Aug 06, 2008 6:26 am

Hi,

Im using a FastLine series to plot Yvalues over time. So bottomaxis = TdateTime.

Is there a way to get a particlar YValue from any give xvalue??? NOT an x-index but a tDateTime. There may not necessarily be a Yvalue for the requested time-> in this case it should extrapolate the information

Ive tried CalcXPosValue() and CalcXSizeValue() but these do not give the correct values.

This seems so trivial yet i cannot seem to find a function to do it.

Regards
Simon

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

Post by Yeray » Wed Aug 06, 2008 9:06 am

Hi Simon,

Could you take a look at the example that Narcis posted here? I think this will solve your both questions at the same time cause it calculates interpolated points and it should work for DateTime also.
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