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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gradient pointer

Thread ID:

Created:

Updated:

Platform:

Replies:

150044 Dec 18,2019 02:44 PM UTC Dec 20,2019 10:33 AM UTC Xamarin.Forms 3
loading
Tags: SfCircularGauge
Hüseyin
Asked On December 18, 2019 02:44 PM UTC

https://help.syncfusion.com/xamarin/circular-gauge/pointers#setting-animation-for-pointer

How do I gradient the orange pointer of the gauge in this example?

Ramya Soundar Rajan [Syncfusion]
Replied On December 19, 2019 01:36 PM UTC

Hi Hüseyin, 
 
Greeting from Syncfusion, 
 
Currently we don’t have gradient support for range pointer. We have already logged the feature request for this support. Please find the link below, 
 
 However, you can achieve this requirement by using gradient color for ranges as shown in the below code. 
 
XAML: 
 
        <gauge:SfCircularGauge> 
 
        <gauge:SfCircularGauge.Scales> 
 
            <gauge:Scale   RimColor="LightGray" RimThickness="30" RadiusFactor="1" ShowTicks="False" 
                               StartValue="0" EndValue="100" Interval="10" LabelOffset="0.75" LabelColor="#424242" 
                              LabelFontSize ="15" > 
                    <gauge:Scale.Pointers> 
 
                        <gauge:NeedlePointer Thickness="7" LengthFactor="0.55" Color="LightGray" 
                                             KnobColor="White" TailColor="LightGray" TailLengthFactor="0.2" 
                                             Type="Triangle"  KnobRadius="12" Value="80" 
                                             AnimationDuration="5" TailStrokeWidth="2" TailStrokeColor="LightGray" 
                                             KnobStrokeColor="LightGray" KnobStrokeWidth="8"/> 
 
                    </gauge:Scale.Pointers> 
 
                    <gauge:Scale.Ranges> 
                        <gauge:Range StartValue="0" EndValue="50" Thickness="30"  Offset="1"> 
                            <gauge:Range.GradientStops> 
                                <gauge:GaugeGradientStop Color="Yellow" Value="0"/> 
                                <gauge:GaugeGradientStop Color="Red" Value="30"/> 
                                <gauge:GaugeGradientStop Color="Blue" Value="50"/> 
                            </gauge:Range.GradientStops> 
                        </gauge:Range> 
                    </gauge:Scale.Ranges> 
 
                </gauge:Scale> 
 
        </gauge:SfCircularGauge.Scales> 
 
    </gauge:SfCircularGauge> 
 


Screenshot: 

 


Please refer the KB link to apply gradient color for ranges below, 

We have prepared the sample by applying gradient for range. Please refer the sample link below, 


Thanks, 
Ramya S 


Hüseyin
Replied On December 20, 2019 08:01 AM UTC

you are wonderful. thank you.

Rachel A [Syncfusion]
Replied On December 20, 2019 10:33 AM UTC

Hi Hüseyin, 
 
Thanks for the feedback. 
 
Regards, 
Rachel.  


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.

Please sign in to access our forum

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

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
Live Chat Icon