Page 1 of 1

GetXValues ().GetValue ();

Posted: Thu May 20, 2004 9:21 pm
by 6928372
Hello all,

I am currently using TChart 5 in an activeX control and when I execute the following command:

dbValueX = (pChart->Series(0).GetXValues ().GetValue (iCntr));

I would expect to get the VALUE of the data point at iCntr. Instead, I get a number that is the same as the Point number. How do I get the X or Y value? Is the GetXValues/GetYValues not the way to do this?

Jt

Posted: Fri May 21, 2004 8:17 am
by Pep
Hi,
dbValueX = (pChart->Series(0).GetXValues ().GetValue (iCntr));

I would expect to get the VALUE of the data point at iCntr. Instead, I get a number that is the same as the Point number. How do I get the X or Y value? Is the GetXValues/GetYValues not the way to do this?
To get the value of the Xpoint you should use :
dbValueY = (pChart->Series(0).GetYValues ().GetValue (iCntr));