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

Free Support Forum - aspose.com

How to set rounded corner for chart area


I couldn’t find a pottery to set rounded corner for the chart area when I use aspose.cells.chart, could you let me know how to achieve this?


Hi Wei,

Thanks for your posting and using Aspose.Cells.

You need to use the Chart.IsRectangularCornered property and set it false. By default, it is true. Once, you set it false, then chart area corners become round.

see the following code and check the source and output xlsx files. I
have also attached the screenshot for your reference. As you can see,
the chart area corners have become round now.


string filePath = @“F:\Shak-Data-RW\Downloads\source.xlsx”;

Workbook workbook = new Workbook(filePath);

Worksheet worksheet = workbook.Worksheets[0];

Chart chart = worksheet.Charts[0];

//Make the chart area corners round

chart.IsRectangularCornered = false;

workbook.Save(filePath + “.out.xlsx”);