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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Color customization for the SPLine curve type

Thread ID:





143924 Apr 10,2019 06:16 PM UTC Apr 11,2019 02:01 PM UTC Angular - EJ 2 1
Tags: Chart
Aparna Pyla
Asked On April 10, 2019 06:16 PM UTC


I have a spline chart that looks like below. 

The dashed lines represents the range area. I want to change color to RED only for the part of curve that falls out of range. How can I achieve that? 

Here is a sample code:


Baby Palanidurai [Syncfusion]
Replied On April 11, 2019 12:22 PM UTC

Hi Aparna, 

Greetings from Syncfusion. 

We have analyzed your query. And we can achieved your requirement by using MutiColoredLine series type in series. While using this series type, you can specify the segment axis and segments which you can set the color and values.  

Please find the below code snippet to achieve this requirement, 
public segments: Object[] = [{ 
        value: 50, 
        color: 'red' 
    }, { 
        value: 80, 
        color: 'green' 
    }, { 
        color: 'red' 


                <e-series [dataSource]='data' type='MultiColoredLine' xName='y' yName='x' name='Germany' width=2 segmentAxis='Y' [segments]='segments'> </e-series> 


Kindly revert us, if you have any concerns. 



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