The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Anyone knows how to give color for the Winform line chart. I mean with various colour for a single line with key color colorizer. Want it with smooth colours as shown in the attachment.
SJSuyamburaja Jayakumar Syncfusion Team April 22, 2020 06:46 PM UTC
Hi Stalin,
Sorry for the delay.
We need some more time to validate this. Hence, we will update the complete details on or before April 24,2020.
Regards,
Suyamburaja J
DDDevakumar Dhanapoosanam Syncfusion Team April 24, 2020 06:48 PM UTC
Hi Stalin,
We can achieve your requirement by providing the specific colors for the line series by setting the interior color for individual data points using Series.Styles[0].Interior property. Please refer the below code snippet for more details,
C#:
series = new ChartSeries("Line");
series.Type = ChartSeriesType.Line;
..
//set the color value based on the your requirement for each line using the Interior
if(value > 0)
{
series.Styles[i].Interior = new BrushInfo(Color.LightGreen);
}
else
{
series.Styles[i].Interior = new BrushInfo(Color.Yellow);