How to Implement Dual Color Spline Chart Series in Syncfusion

Hello Syncfusion Community,


I hope everyone is doing well. I have a question regarding the implementation of a dual-color spline chart series in Syncfusion. Specifically, I am trying to create a spline chart where the color changes based on the y-values.


Here's what I'm aiming for:


If the y-value is 180 or above, the color of the spline should be red.

If the y-value is below 70, the color of the spline should be red.

If the y-value is between 70 and 180, the color of the spline should be green.

I have been exploring the documentation and examples provided by Syncfusion, but I haven't found a straightforward solution for achieving this specific requirement.


Could someone kindly guide me on how to implement this in Syncfusion? Any help, code snippets, or pointers to relevant documentation would be greatly appreciated.


Thank you in advance for your assistance!


Best regards


1 Reply

SB Swetha Babu Syncfusion Team March 22, 2024 10:47 AM UTC

Hi Muhammad,


Greetings from Syncfusion.


As of now, we can set different colors for the line chart using the MultiColoredLine chart. Unfortunately, we do not have support to set different colors for a Spline chart.


Please get back to us if you need any other assistance.


Regards,

Swetha


Loader.
Up arrow icon