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

How to change the color of Line series in SfDateTimeRangeNavigator?

Thread ID:

Created:

Updated:

Platform:

Replies:

149863 Dec 12,2019 06:04 AM UTC Dec 12,2019 12:47 PM UTC Xamarin.Forms 1
loading
Tags: SfDateTimeRangeNavigator
Bharath
Asked On December 12, 2019 06:04 AM UTC

                                                        
https://help.syncfusion.com/xamarin/datetime-range-navigator/content_images/content_img1.png

I want to change the yellow color to red.

Hemalatha Marikumar [Syncfusion]
Replied On December 12, 2019 12:47 PM UTC

Hi Bharath, 
  
Greetings from Syncfusion. 
 
We have analyzed your requirement “Change the color of the Line series in SfDataTimeRangeNavigator” and we would like to let you know that by default, data has been visualized using LineSeries. To achieve your requirement, clear the default Series and add SplineAreaSeries as the content of SfDataTimeRangeNavigator with assigning the desired color using Color property in it as per in below code snippet. 
 
Code Snippet [C#]:  
 
        ((SfChart)RangeNavigator.Content). Series.Clear(); 
        ((SfChart)RangeNavigator.Content). Series.Add(new SplineAreaSeries() { ItemsSource = series.ItemsSource, XBindingPath = "XValue", YBindingPath = "YValue", Color = Color.Red }); 
  
Please refer below link to know more:  
 
  
And we have prepared a sample based your requirement and you can download the sample from the below link.  
 
  
Screenshot
 
Please let us know if you need any further assistance. 
 
Regards, 
Hemalatha M. 


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