We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize gauge position with Offset

Platform: Xamarin.Forms |
Control: SfCircularGauge

This article explains the steps required to design circular gauge with Offset values.

Circular gauge control can be customized as follow,


  1. Create a Xamarin application, and initialize the SfCircularGauge control on it. Add Scale with suitable angles for rendering by using StartAngle and SweepAngle. ScaleStartOffset property is used to define where the scale position starts, and ScaleEndOffset property is used to define the position of the scale end.


<xForms:SfCircularGauge x:Name="circularGauge" BackgroundColor="White" HeightRequest="160" WidthRequest="80">
        <xForms:Scale x:Name="scale" EndValue="100" ScaleStartOffset="1" ScaleEndOffset="0.9"  Interval="10" LabelColor="Gray" LabelOffset="0.7" LabelFontSize="15" MinorTicksPerInterval="2" RimColor="LightGray"  StartAngle="135" StartValue="0" SweepAngle="270">


  1. In RangePointer, StartOffset property is used to set the starting position of the pointer and EndOffset property is used to set the ending position of the pointer. For NeedlePointer, KnobRadiusFactor property is used to increase the knob thickness.


   <xForms:NeedlePointer x:Name="needlePointer" KnobColor="LightGray" KnobRadiusFactor="0.05" LengthFactor="0.8" Type="Triangle" Color="LightGray" Value="50”/>
   <xForms:RangePointer Color="#2bbfb8" Value="50" StartOffset="1" EndOffset="0.9" />


  1. Ticks can be customized by StartOffset and EndOffset properties. StartOffset is used to set where the ticks start, and EndOffset is used to set where the ticks end.


   <xForms:TickSettings StartOffset="0.9" EndOffset="0.8" Thickness=”2” Color="#444444" />
   <xForms:TickSettings StartOffset="0.9" EndOffset="0.85" Thickness=”1”  Color="#444444" />


  1. Headers can be customized by Position property.


   <xForms:Header Font="Bold" ForegroundColor="Black" Position="0.5,0.7" Text="50%" TextSize="40" />


The following screenshot illustrates the Customized Gauge.

Customize SfCircularGauge position with offset






2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile