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

SfCircularGauge - how to specify header and tick settings in XAML?

I'm using XAML to define my SfCircularGauge, and am having problems defining a Header and Major/Minor tick settings.

Is there an example of how to do this in XAML?

3 Replies

SP Sivakumar Punniya Moorthi Syncfusion Team February 19, 2016 01:34 PM UTC

Hi James,


Thanks for your interest in Syncfusion products.


We have analyzed your query,in order to define “Header” , “Major Tick settings “ and” Mionor Tick settings” in Xaml code. Please find the code snippet below,


CodeSnippet:


<gauge:SfCircularGauge Grid.Row="1"
        WidthRequest     ="120"
        x:Name   ="circular" >

<gauge:SfCircularGauge.Scales>
            <gauge:Scale
            x:Name="scale"
                StartValue   ="-100"
                EndValue     ="-20"
                Interval     ="20" >
                 <gauge:Scale.MajorTickSettings>
                 <gauge:TickSettings Length="22" Color="Red">
                 </gauge:TickSettings>
                 </gauge:Scale.MajorTickSettings>
                 <gauge:Scale.MinorTickSettings>
                 <gauge:TickSettings  Length="12" Color="Green">
                 </gauge:TickSettings>
                 </gauge:Scale.MinorTickSettings>
            </gauge:Scale>
        </gauge:SfCircularGauge.Scales>
    <gauge:SfCircularGauge.Headers>
      <gauge:Header Text="Speedometer" Position="0.3,0.6" ForegroundColor="Maroon"  />
    </gauge:SfCircularGauge.Headers>
    </gauge:SfCircularGauge>



Please let us know, if you need any further assistance on this.


Regards,

Sivakumar P



JL James Lavery February 21, 2016 05:20 PM UTC

Hi Sivakumar,
Thanks - that's just what I needed to know.

Regards,

James


SP Sivakumar Punniya Moorthi Syncfusion Team February 22, 2016 10:33 AM UTC

Hi James,


Thanks for your update.      


We are glad to know that you have met your requirement. Please let us know if you need further assistance.


Regards,

Sivakumar P.


Loader.
Live Chat Icon For mobile
Up arrow icon