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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LineSeries with two colors

Thread ID:





132754 Sep 19,2017 01:34 PM UTC Sep 21,2017 10:55 AM UTC WPF 3
Tags: SfChart
Timo Rüth
Asked On September 19, 2017 01:34 PM UTC

Is it possible to draw a LineSeries with two Colors? Like this one:


Durgadevi Selvaraj [Syncfusion]
Replied On September 20, 2017 02:15 PM UTC

Thanks for contacting Syncfusion Support. 
We can achieve your requirement (displaying Line series with two colors) by setting Palette as Custom and custom brushes to the ColorModel property of the chart series as shown in the below code, 
<chart:StepLineSeries ItemsSource="{Binding Collection}" Palette="Custom" XBindingPath="XValue" YBindingPath="YValue"> 
                    <SolidColorBrush Color="Blue"/> 
                    <SolidColorBrush Color="DeepPink"/> 
Please find the output screenshot below, 
You can refer our UG Documentation link to know more about this property, 
We have prepared the sample for your reference and please find the sample from below link, 
Durgadevi S 

Timo Rüth
Replied On September 20, 2017 02:18 PM UTC

Thanks for the fast reply. I will try it.



Durgadevi Selvaraj [Syncfusion]
Replied On September 21, 2017 10:55 AM UTC

Hi Timo, 
Thanks for your response and we will wait until hear from you.  
Durgadevi S 


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