Hi,
I would like to get the distance D (see my example) on a chart ?- How can I retrieve it ? D distance can change if numbers on left axis have more numbers !
Thanks for your help
Guilz
Retrieve position of left axis
Re: Retrieve position of left axis
Hello Guilz,
D is the Left Axis Position property. You could, for example:
Note that this property needs the chart to be drawn to have a valid value.
D is the Left Axis Position property. You could, for example:
Code: Select all
Private Sub TChart1_OnAfterDraw()
TChart1.Canvas.Font.Size = 10
TChart1.Canvas.Font.Bold = True
TChart1.Canvas.Font.Color = vbBlue
TChart1.Canvas.TextOut TChart1.Axis.Left.Position, 100, "My label"
End Sub
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Retrieve position of left axis
Thank you Yeray - I was not aware that property TChart1.Axis.Left.Position could be read only after AxTChart_OnAfterDraw event
Guilz
Guilz