Page 1 of 1

How can I convert Horizontal Unit to Pixel Value

Posted: Mon Mar 12, 2007 7:34 am
by 9343617
Hi,
Is there any function to Convert Horizontal one unit value to the Pixel value in TeeChart? What is reverse function?

Thanks and Regards
Raju S Nair

Posted: Mon Mar 12, 2007 9:31 am
by narcis
Hi Raju,

Yes, you can try using this:

Code: Select all

  XPos:=Chart1.Axes.Bottom.CalcXPosValue(23);
The inverse method is:

Code: Select all

  XVal:=Chart1.Axes.Bottom.CalcPosPoint(200);