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.
Syncfusion Feedback

Change graph line color according to Y-axis value

Thread ID:

Created:

Updated:

Platform:

Replies:

129869 Apr 6,2017 02:15 PM UTC Apr 7,2017 02:45 PM UTC WPF 1
loading
Tags: SfChart
Michael
Asked On April 6, 2017 02:15 PM UTC

Hello,

I want to know how to change the color of the graph line according to Y-axis value.
In the attached file you can see the example of what I need (the red line at the amplitude equal to 0).

Thanks a lot!

Attachment: sfchart_question1_d80346cb.rar

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On April 7, 2017 02:45 PM UTC

Hi Michael, 
  
Thanks for contacting Syncfusion Support. 
  
In StepLineSeries, we don’t have any direct way to change the one direction of line color (In step line series, both horizontal and vertical line drawn for single point) according to y-axis value. 
However, we have achieved your requirement by plotting the LineSeries on desired amplitude value (YValue). 
We have prepared a demo sample for your requirement and it can be downloaded from below link, 
  
Sample: StepLineColor 
  
Please find the output screenshot, 
 
Regards, 
Devi 
 





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.

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

;