This article describes how to rotate the axis labels in chart.
Rotation of the axis labels can be done by using the LabelRotationAngle property of the axis.
It is explained with positive as well as negative rotations of the axis labels. Positive rotations in XAML and negative rotations in code behind.
<syncfusion:SfChart.PrimaryAxis > <syncfusion:CategoryAxis Header="Product" LabelRotationAngle="45"/> </syncfusion:SfChart.PrimaryAxis>
The following screenshot illustrates the output of the axis labels that have been rotated to 45°.
this.axisChart.PrimaryAxis.LabelRotationAngle = -270;
The following screenshot illustrates the output of the axis labels that have been rotated to –270°.
This page will automatically be redirected to the sign-in page in 10 seconds.