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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

122124 Feb 18,2016 06:35 AM Feb 22,2016 05:33 AM Xamarin.Forms 3
loading
Tags: SfCircularGauge
James Lavery
Asked On February 18, 2016 06:35 AM

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?

Sivakumar Punniya Moorthi [Syncfusion]
Replied On February 19, 2016 08:34 AM

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


James Lavery
Replied On February 21, 2016 12:20 PM

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

Regards,

James

Sivakumar Punniya Moorthi [Syncfusion]
Replied On February 22, 2016 05:33 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;