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. Image for the cookie policy date
close icon

Transparent chartarea

Isn't it possible to have the chartarea and plotarea transparent (the same way you can set the chart- and plot area to "none" instead of a color in Excel).


1 Reply

YG Yavanaarasi G Syncfusion Team January 9, 2008 11:27 AM UTC

Hi Magnus,

Thank you for being patient.

Isn't it possible to have the chartarea and plotarea transparent?

It is possible to set the Chartarea and Plotarea be transparent. Please refer the below code:



//Set colors for chart Area
chart.ChartArea .Fill.ForeColor = Color.Transparent;
chart.ChartArea.Fill.BackColor = Color.Transparent;

//Plot Area
IChartFrameFormat chartPlotArea = chart.PlotArea;

//Set colors for plot area
chartPlotArea.Fill.ForeColor = Color.Transparent;
chartPlotArea.Fill.BackColor = Color.Transparent;



Also, Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/XlsIO.Windows/70826/main.htm

Please let me know if you have any concerns.

Regards,
Yavana.G



Loader.
Live Chat Icon For mobile
Up arrow icon