Articles in this section

How to display chart axis labels between the ticks in .NET MAUI Chart (SfCartesianChart)?

This article will guide you on how to display chart axis labels between the ticks in the .NET MAUI Chart.
Positioning the category axis labels between ticks enhances the readability of the axis labels. 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:SfCartesianChart>
. . .
<chart:SfCartesianChart.XAxes>
    <chart:CategoryAxis LabelPlacement="BetweenTicks"/>
</chart:SfCartesianChart.XAxes>
. . .
</chart:SfCartesianChart>

[C#]

SfCartesianChart chart = new SfCartesianChart();
. . .
CategoryAxis primaryAxis = new CategoryAxis ()
{
    LabelPlacement = LabelPlacement.BetweenTicks
};
chart.XAxes.Add(primaryAxis);
. . .

The following screenshot displays the axis labels between the ticks.

between_ticks.png

Conclusion
I hope you enjoyed learning how to display chart axis labels between the ticks in .NET MAUI Chart (SfCartesianChart).
You can refer to our .NET MAUI Chart feature tour page to learn about its other groundbreaking feature representations. Explore our .NET MAUI Chart documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Chart and other .NET MAUI components.
Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

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