Articles in this section
Category / Section

How to set ticks and customize its position in circular gauge

1 min read

This article explains the steps required to set ticks and customize its position.

You can set minor and major ticks in circular gauge by using MajorTickSettings and MinorTickSettings properties.

Tick position can be customized by using the following two ways.

  1. For Outer Scale (below image), major and minor tick’s settings 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:SfCircularGauge x:Name="circularGauge" BackgroundColor="White" HeightRequest="160" WidthRequest="80">
        <gauge:Scale x:Name="scale1" StartAngle="135" SweepAngle="270"
                   StartValue="0" EndValue="240" Interval="20" MinorTicksPerInterval="1" RimColor="#C62E0A"  LabelOffset="0.88" LabelColor="#C62E0A" ScaleStartOffset="0.7" ScaleEndOffset="0.69">
       <gauge:TickSettings StartOffset="0.7" EndOffset="0.77" Thickness="2" Color="#C62E0A"/>
         <gauge:TickSettings StartOffset="0.7" EndOffset="0.75" Thickness="2" Color="#C62E0A"/>
      <gauge:MarkerPointer EnableDragging="True" x:Name="pointer1" Value="120"  Color="#C62E0A" Offset="0.69" MarkerShape="InvertedTriangle" />


  1. For Inner Scale, major and minor tick’s settings can be customized by using Offset and Length properties. Offset property is used to denote where the tick can be positioned, and Length property is used to increase or decrease the length of the tick.


<xForms:Scale x:Name="scale2" StartAngle="135" SweepAngle="270"
                   StartValue="0" EndValue="160" Interval="40" MinorTicksPerInterval="1" RimColor="DarkGray"  LabelOffset="0.5" LabelColor="DarkGray" ScaleStartOffset="0.65" ScaleEndOffset="0.64">
                        <xForms:TickSettings Offset="0.64" Length=”12” Thickness="2" Color="DarkGray"/>
                        <xForms:TickSettings Offset="0.64" Length=”6” Thickness="2" Color="DarkGray"/>
                        <xForms:MarkerPointer Value="80"  Color="DarkGray" Offset="0.64" MarkerShape="Triangle" />


The following screenshot illustrates the Customized Tick Settings in Gauge,


Ticks customization using xamarin SfCircularGauge


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied