We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart control back color

Thread ID:

Created:

Updated:

Platform:

Replies:

54515 Jan 10,2007 12:33 PM UTC Jan 12,2007 12:37 AM UTC Windows Forms 1
loading
Tags: Chart
Sathishkumar Kaliavaradhan
Asked On January 10, 2007 12:33 PM UTC

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

Thanks in adavnce
K.Sathishkumar

Suresh Babu [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;