Skip to content

Commit b6949de

Browse files
committed
maximum labels content added
1 parent 50a15ed commit b6949de

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

maui-toolkit-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
<li><a href="/maui-toolkit/cartesian-charts/axis/padding">Axis Padding</a></li>
117117
<li><a href="/maui-toolkit/cartesian-charts/axis/range-padding">Axis Range Padding</a></li>
118118
<li><a href="/maui-toolkit/cartesian-charts/axis/autoscrollingdelta">Auto Scrolling</a></li>
119+
<li><a href="/maui-toolkit/cartesian-charts/axis/maximumlabels">Maximum Labels</a></li>
119120
</ul>
120121
</li>
121122
<li>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: post
3+
title: Limit axis labels using MaximumLabels in .NET MAUI Chart control | Syncfusion
4+
description: Learn how to control the number of axis labels displayed in Syncfusion® .NET MAUI Chart (SfCartesianChart) control using the MaximumLabels property.
5+
platform: maui-toolkit
6+
control: SfCartesianChart
7+
documentation: ug
8+
keywords: .net maui chart maximum labels, axis labels count .net maui, syncfusion maui chart labels per 100 pixels, limit axis labels .net maui, customize axis label density .net maui chart.
9+
---
10+
11+
# Maximum labels per 100 pixels in .NET MAUI Chart
12+
13+
The [MaximumLabels]() property in ChartAxis allows users to control the number of axis labels rendered for every 100 pixels of the chart axis. This feature helps maintain better label spacing and improves readability.
14+
15+
By default, a maximum of `3 labels` are displayed per 100 pixels of axis. This ensures that the chart remains clean and readable without manual configuration. You can override this behavior by explicitly setting the MaximumLabels property to your desired density.
16+
17+
**XAML**
18+
19+
{% highlight xaml %}
20+
21+
<chart:SfCartesianChart>
22+
23+
. . .
24+
25+
<chart:NumericalAxis MaximumLabels="1" />
26+
. . .
27+
28+
</chart:SfCartesianChart>
29+
30+
{% endhighlight %}
31+
32+
N> This property only applies during automatic interval calculation. It will have no effect if the Interval property is manually set on the axis.

0 commit comments

Comments
 (0)