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.

Change Background of Stacked Column Chart

Thread ID:





116056 Mar 25,2014 08:52 AM Mar 26,2014 01:00 AM ASP.NET MVC (Classic) 1
Tags: Chart
Prakash Rajan
Asked On March 25, 2014 08:52 AM

I am using Stacked column chart , i want to customize the background color of the chart.For PIE chart i did using 


It is not woriking for the Stacked Column Chart.How can i chage the abackground color?

I some how able to hide the grid lines in the chart using 

             ChartModel.PrimaryXAxis.DrawGrid = false;
             ChartModel.PrimaryYAxis.DrawGrid = false;
             ChartModel.PrimaryXAxis.GridLineType.ForeColor = Color.Transparent;
             ChartModel.PrimaryYAxis.GridLineType.ForeColor = Color.Transparent;
Will it affect the rendering of the backColor property?

Anandaraj T [Syncfusion]
Replied On March 26, 2014 01:00 AM

Hi Prakash,

Thanks for using Syncfusion products.

We suggest you to use "ChartInterior" property of chart model to customize the background color of chart. Since, pie charts does not have interior we can customize background color using "BackInterior" property of chart model which will customize the background of chart area.

Please refer the following code snippet to achieve this.
            //Customizing background of Chart
            model.ChartInterior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, new Color[] { Color.Red, Color.Yellow, Color.White });


For your convenience, we have created a simple sample and it can be downloaded from the following link.

Please let us know if you have any concern.



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.

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.