Chart control back color

How do i change the backcolor of chart control (except for chart area )?

Thanks in adavnce
K.Sathishkumar

1 Reply

SB Suresh Babu Syncfusion Team January 12, 2007 12:37 AM UTC

Hi Sathish,

The default Background color can be changed by setting the properties Chart Control's 'BackInterior', 'ChartInterior' and Chart Area's 'BackInterior'.

1) You can write the code in Form Load event.
2) Or Change the existing code which is available in “Windows Form Designer generated code” region

Please look into the following sample code.

this.chartControl1.BackInterior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.None, System.Drawing.Color.White, System.Drawing.Color.White);
this.chartControl1.ChartArea.BackInterior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.None, System.Drawing.Color.White, System.Drawing.Color.White);
this.chartControl1.ChartInterior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.None, System.Drawing.Color.White, System.Drawing.Color.White);

Please take a look into the sample attached for more details.

Change Background Color sample

Thank you for using Syncfusion products.

Regards,
Sureshbabu

Loader.
Up arrow icon