We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to set chart plot area shadow properties?

I can add a drop shadow with this property:
chart.PlotArea.Shadow = true;

How do I set the following Plot Area Shadow properties?

Color: Black
Transparency: 60%
Size: 100%
Blur: 4 pt
Angle: 45 degrees
Distance: 3 pt

Thank you,
-Duke

Hi,


Please use ShapeProperties with ShadowEffect class for formatting, e.g
chart.PlotArea.Shadow = true;
ShapeProperties spPr = chart.PlotArea.ShapeProperties;
ShadowEffect shEffect = spPr.ShadowEffect;
CellsColor cellColor = workbook.CreateCellsColor();
cellColor.Color = Color.Black;
shEffect.Color = cellColor;
shEffect.Transparency = 1;
shEffect.Size = 2;
shEffect.Blur = 4;
shEffect.Angle = 45;
shEffect.Distance = 3;

Thank you.

Thanks for the quick respose!

Works great, just need to change the following properties to get the desired effect:

shEffect.Transparency = 1; //should be .6
shEffect.Size = 2; //should be 1