Free Support Forum - aspose.com

Setting No Fill background for PlotArea/ChartArea

Hi,

I am trying to make the plot area and chart area completely transparent (called no fill in the Excel gui). I have tried the following (for the chart area) with no success:

chart.ChartArea.Background = BackgroundMode.Transparent;
chart.ChartArea.Area.FillFormat.Pattern = FillPattern.None;
chart.ChartArea.Area.Formatting = FormattingType.None;
chart.ChartArea.Area.ForegroundColor = Color.Transparent;
chart.ChartArea.Area.BackgroundColor = Color.Transparent;

Can someone point me towards the correct property?

Thanks.

Shaun

Hi Shaun,

Please remove other codes exception chart.ChartArea.Area.Formatting = FormattingType.None;

Thank you. Just what I needed.