How can I convert Horizontal Unit to Pixel Value

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Raju S Nair
Newbie
Newbie
Posts: 10
Joined: Wed Sep 28, 2005 4:00 am

How can I convert Horizontal Unit to Pixel Value

Post by Raju S Nair » Mon Mar 12, 2007 7:34 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 12, 2007 9:31 am

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);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply