LINE DRAWING

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
marshall
Newbie
Newbie
Posts: 5
Joined: Tue May 02, 2006 12:00 am
Location: Florida, USA

LINE DRAWING

Post by marshall » Tue Jul 25, 2006 10:23 am

I need to draw a vertical line in a line chart at a specific x-location based on what the value of x is. I've tried

startpixel = Series1->CalcXPos(X);

to get the pixel location. That doesn't seem to work. I get a return value that does not fit on the screen.

Thanks,
Marshall

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Wed Jul 26, 2006 8:42 am

Try

Code: Select all

startPixel := Series1.GetVertAxis.CalcPosValue(X) ;
CalcPosValue converts from axis double XY to screen pixel XY.

Post Reply