How to set the Interior color for the Chart and the Chart Series?
For Chartcontrol use its ChartInterior property which specifies the interior of the chart, chart background, chart area background and for Series use its interior property which sets the solid back color, gradient or pattern style with both back and forecolor of a Chart point’s background.
C#
//Specifies Chart Interior
this.chartControl1.ChartInterior = new BrushInfo(GradientStyle.Vertical, Color.AntiqueWhite, Color.LightYellow);
//Chart Background Interior
this.chartControl1.BackInterior = new BrushInfo(GradientStyle.PathEllipse, Color.MistyRose, Color.LightYellow);
// Chart Area Interior
this.chartControl1.ChartArea.BackInterior = new BrushInfo(GradientStyle.ForwardDiagonal, Color.MistyRose, Color.LightYellow);
//Specifies Series Interior Color
this.chartControl1.Series[0].Style.Interior = new BrushInfo(175, new BrushInfo(GradientStyle.BackwardDiagonal, new BrushInfoColorArrayList(new Color[] { Color.SaddleBrown, Color.Salmon })));
VB
'Specifies Chart Interior
Me.chartControl1.ChartInterior = New BrushInfo(GradientStyle.Vertical, Color.AntiqueWhite, Color.LightYellow)
'Chart Background Interior
Me.chartControl1.BackInterior = New BrushInfo(GradientStyle.PathEllipse, Color.MistyRose, Color.LightYellow)
' Chart Area Interior
Me.chartControl1.ChartArea.BackInterior = New BrushInfo(GradientStyle.ForwardDiagonal, Color.MistyRose, Color.LightYellow)
'Specifies Series Interior Color
Me.chartControl1.Series(0).Style.Interior = New BrushInfo(175, New BrushInfo(GradientStyle.BackwardDiagonal, New BrushInfoColorArrayList(New Color() { Color.SaddleBrown, Color.Salmon })))