ITChart.OnDrawAxisLabel
ITChart

property OnDrawAxisLabel: TTChartOnDrawAxisLabel;

Type Library
TeeChartx

Description

Triggered when Drawing an Axis Label. Yuo can use this event to modify Label Font characteristics at plot time.

Example

Private Sub TChart1_OnDrawAxisLabel(ByVal Axis As Long, ByVal x As Long, ByVal y As Long, LabelText As String)

With TChart1

If Check1.Value Then

If Axis = 0 Then

If x <= .Axis.Bottom.CalcXPosValue(.Series(0).XValues.Maximum / 2) Then

.Canvas.Font.Bold = True

Else

.Canvas.Font.Bold = False

End If

End If

End If

End With

End Sub