Page 1 of 1

Probably Stupid Question - Calculate Y from X

Posted: Wed Aug 06, 2008 6:26 am
by 8441629
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

Posted: Wed Aug 06, 2008 9:06 am
by yeray
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.