TextAlignment: ChartAxisTextAlignment;
The TextAlignment property determines a text alignment method relative to the axis.
Alignment can be applied for the category axis only if:
Label text is multiline and rotation angle of labels is equal to zero.
Rotation angle is equal to 90 degrees.
BY default, value axes are aligned to the center, and category axes are aligned closer to the axis.
Executing the example requires a form with a button named Button1 on the form, the ChartBox component and the UiChart component that is a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ay: IChartAxis;
Begin
ay:= UiChart1.Chart.AxisY;
ay.TextAlignment:= ChartAxisTextAlignment.Near;
End Sub Button1OnClick;
Clicking the Button1 button moves the Y axis labels closer to the axis.
See also: