How to customize the Linear Gauge label position in .NET MAUI Linear Gauge (SfLinearGauge)?
The Syncfusion .NET MAUI Linear Gauge (SfLinaearGauge) supports the customization of linear gauge label position. Follow the demonstration in this article to customize the label position of the linear gauge.
XAML:
Initialize the SfLinearGauge Control and you can set the LabelPosition Property value as Outside the gauge track.
<gauge:SfLinearGauge LabelPosition="Outside" VerticalOptions="Center" Interval="10" WidthRequest="500">
<gauge:SfLinearGauge.LineStyle>
<gauge:LinearLineStyle Fill="CadetBlue"/>
</gauge:SfLinearGauge.LineStyle>
</gauge:SfLinearGauge>
By default, the LabelPosition Property value will be Inside the gauge track.
Output:
Conclusion:
I hope you enjoyed learning how to customize the linear gauge label position in the .NET MAUI LinearGauge (SfLinearGauge).
Refer to our .NET MAUI LinearGauge’s feature tour page to learn about its other groundbreaking feature representations. You can also explore our .NET MAUI LinearGauge documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion, try our 30-day free trial to check out our .NET MAUI LinearGauge and other .NET MAUI components.
Please let us know in the comment section if you have any queries or require clarifications. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!