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

Free Support Forum - aspose.com

How to set rounded corner for chart area

Hi,

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?

Thanks,
Wei

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.

Please
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.

C#


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”);