Articles in this section
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.

 

C:\Users\yuvaraj.palanisamy\Pictures\betweenticks.png


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied