IAxis.CalcXPosValue
IAxis
function CalcXPosValue(SomeValue: Double): Integer;
Type Library
TeeChartx
Description
This function calculates the Horizontal coordinate in pixels of Value parameter.
Example [Visual Basic]:
Our bottom axis has a Minimum of 20 and a Maximum of 1000.
We need to draw a vertical line that represents the value: 500.
Private Sub TChart1_OnAfterDraw()
X = TChart1.Axis.Bottom.CalcXPosValue(500)
TChart1.Canvas.MoveTo X, TChart1.Axis.Bottom.Position
TChart1.Canvas.LineTo X, TChart1.Axis.Top.Position
End Sub