charts segment colorizer - Winforms

Hi Guys,
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. 
Thanks 

Attachment: chartssegmentcolorizerdemo_bc7715f0.rar

3 Replies

SJ Suyamburaja Jayakumar Syncfusion Team April 20, 2020 01:04 PM UTC

Hi Stalin, 
 
Greetings from Syncfusion. 
 
Currently we are working on the requirement and we will update the complete details on or before April 22, 2020. 
 
Regards, 
Suyamburaja J 



SJ Suyamburaja 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 



DD Devakumar 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); 
} 
 
 
 
Screenshot: 
 
 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Devakumar D 
 


Loader.
Up arrow icon