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

Free Support Forum - aspose.com

Legends have reorganized their positions in Chart's PDF


I am using Aspose.Cells v8.7.0.4 to generate PDF of chart - M-BDWEUS in the attached excel file. In the PDF output, legends have reorganized their positions. They are displayed as a vertical list in actual chart, but in PDF output they are not appearing as a vertical list.

Following code is used to generate the output:

void chartToPDF() throws Exception {
Workbook workbook = new Workbook("Legend reorganised.xlsx");
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = "Chart";
Chart chart = ws.get(worksheetName).getCharts().get("M-BDWEUS");

I have attached Aspose generated Pdf along with a screenshot comparing it with actual chart.

Can you please analyse this issue.



Thanks for the template file and sample code.

I have evaluated your scenario/ case a bit. Well, Aspose.Cells does render the chart fine in the output PDF file and it is not an issue with Aspose.Cells by any means. For confirmation, you either take the print preview of the chart in MS Excel or select the chart and save it as “PDF” in MS Excel manually, you will get similar result as per Aspose.Cells’ rendered chart.

Thank you.