Articles in this section
Category / Section

How do I change the color of the Chart legend items for LineChart type?

1 min read

 The color for the legend lines are based on the forecolor of the interior for the series. Adding the following code will change the color of the lines:

C#

this.chartControl1.Series[1].Style.Interior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.PatternStyle.None,System.Drawing.Color.Red,System.Drawing.Color.Red);

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied