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

Output

Chart with labels placed between axis ticklines in Xamarin.Forms

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