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.

FastLineSeries having segement with different color depending on Xvalue

Thread ID:





125339 Aug 9,2016 09:30 PM Aug 10,2016 12:18 PM WPF 1
Tags: SfChart
Rodolphe Billottet
Asked On August 9, 2016 09:30 PM


I'm using an SFChart to display real-time data  like below (have also attache a ScreenShot)

<chart:SfChart AreaBorderThickness="0" x:Name="Chart" >         
      <chart:DateTimeAxis x:Name="xAxis" PlotOffset="10" ShowTrackBallInfo="True" LabelFormat="HH:mm" />  
      <chart:NumericalAxis PlotOffset="10" />
   <chart:FastLineSeries ItemsSource="{Binding MyDataSerie}" XBindingPath="DateTime" YBindingPath="Value" Interior="Turquoise" />

If you refer to the attached screenshot, the chart display one blue LineSerie  from around 8:40 to 10:20 
I would like to some segment of that line with a different color, for instance 
  • Before 9:20 => Turquoise
  • Between  9:20  and 9:40 => Red
  • After 9:40  => Turquoise 
How can I do that ? 


Attachment: MultiColorFastLineSeries.png_ac58af17.zip

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On August 10, 2016 12:18 PM

Hi Rodolphe, 
Thanks for contacting Syncfusion Support. 
We have rendered fastline series as a single segment (single polyline). So, we are unable to apply different color in single element based on some condition in real time case.  


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.