GetXValues ().GetValue ();

TeeChart for ActiveX, COM and ASP
Post Reply
Jt
Newbie
Newbie
Posts: 4
Joined: Sat Jul 05, 2003 4:00 am
Location: Toronto
Contact:

GetXValues ().GetValue ();

Post by Jt » Thu May 20, 2004 9:21 pm

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

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

Post by Pep » Fri May 21, 2004 8:17 am

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));

Post Reply