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
LINE DRAWING
Try
CalcPosValue converts from axis double XY to screen pixel XY.
Code: Select all
startPixel := Series1.GetVertAxis.CalcPosValue(X) ;