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

Free Support Forum - aspose.com

Chart not displayed correctly when Legend overlaps the Chart

Chart in Excel is not displayed correctly when the Legend overlaps the chart. We found that the graph was displayed correctly by turning off “Show the legend without overlapping the chart” option in “Format legend”> “Legend Options”> “Legend Position”.

20211223_01.7z (12.7 KB)

I have attached the Excel file which is problematic.

@IDBSSupport,

Please try the following sample line of code to accomplish your task:
e.g.
Sample code:

......    
Chart chart = workbook.getWorksheets().get(0).getCharts().get(0);
chart.getLegend().setOverLay(false); 

Let us know if you still have any issue.