Realtime spline chart with colors depending on the values

Hi,

I have a real-time chart with 0 at the middle of the y-axis and seconds at the x-axis.
It works but I would like to have a line color that depends on the value. Red is above or equal to 0 and green is below zero.
If a SplineArea is used then the surface would be filled with those colors.



Best regards,
Nick

Attachment: chart_2f73e403.zip

1 Reply 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team May 23, 2021 12:51 PM UTC

Hi Nick Asseloos, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and we have support for each segment of spline color(point to point) with the help of the Interior property of chart series style. But the spline render from positive to negative scenario it is not possible with the spline chart. Because the spline will be draw always point to point. If you would like to change the color for positive and negative, then you should change your date points collection based on your requirement when you are loading data to chart. 
 
Regards, 
Yuvaraj.

Marked as answer
Loader.
Up arrow icon