Page 1 of 1

LINE DRAWING

Posted: Tue Jul 25, 2006 10:23 am
by 9346223
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

Posted: Wed Jul 26, 2006 8:42 am
by 9343260
Try

Code: Select all

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