Category / Section
How to display axis labels between the ticks in Android SfCharts ?
1 min read
Chart allows you to position the Category axis labels between the ticks. You can use LabelPlacement property of the CategoryAxis to customize the tick position. By default, the value of the LabelPlacement is OnTicks.
Code snippet
[Java]
chart.setPrimaryAxis(new CategoryAxis() {{ setLabelPlacement(LabelPlacement.BetweenTicks); }});
Xamarin.Android (C#)
chart.PrimaryAxis = new CategoryAxis() { LabelPlacement = LabelPlacement.BetweenTicks };
Output
The following screenshot displays the axis labels between the ticks.