Category / Section
How to display chart axis labels between the ticks?
1 min read
Chart allows you to position the category axis labels between the ticks. You can use the LabelPlacement property of the CategoryAxis to customize the tick position. By default, the value of the LabelPlacement property is OnTicks.
XAML
<chart:SfChart.PrimaryAxis> <chart:CategoryAxis LabelPlacement="BetweenTicks" > </chart:CategoryAxis> </chart:SfChart.PrimaryAxis>
C#
Chart.PrimaryAxis = new CategoryAxis { LabelPlacement = LabelPlacement.BetweenTicks };
The following screenshot displays the axis labels between the ticks.