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

Free Support Forum - aspose.com

Angle of x-axis labels is incorrect in Chart's PDF


I am using Aspose.Cells v16.11.1 to generate PDF of charts in the attached excel file. In the PDF output, the angle of X-axis labels is incorrect. The labels in Aspose generated PDF are straight while they are slanting in the actual chart.

Following code is used to generate the output:

Workbook workbook = new Workbook("test.xlsm");
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = "Sheet11";
Chart chart = ws.get(worksheetName).getCharts().get("Chart 2");
chart.toPdf("chart 2_aspose_16.11.1.pdf");

I have attached Aspose generated Pdf along with a screenshot of the issue.

Can you please analyse this issue.



Thanks for your posting and using Aspose.Cells.

We were able to observe this issue as per your description by generating the pdfs of the chart using the following sample code with the latest version: Aspose.Cells for Java v16.11.4.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-42076 - Angle of X-axis labels is incorrect in Chart Pdf

I have also attached the output pdfs of both charts for a reference.

Workbook workbook = new Workbook(dirPath + “test.xlsm”);

Worksheet worksheet = workbook.getWorksheets().get(“Sheet11”);

Chart ch0 = worksheet.getCharts().get(0);
Chart ch1 = worksheet.getCharts().get(1);

// ch0.calculate();
// ch1.calculate();

ch0.toPdf(dirPath + “ch0.pdf”);
ch1.toPdf(dirPath + “ch1.pdf”);


Just to let you know that the given issue is critical as it has been reported by one of our key customers in the production environment. Not only this results in data loss but also in bad data presentation in their reports.

Can you please provide the fix for this as soon as posible and also let us know the ETA for the fix?



Thanks for your posting and using Aspose.Cells.

We are afraid there is no update for you at this moment regarding this issue. However, we have logged your comment in our database against this issue and requested the product team to provide some fix or ETA for this issue. Once there is some news for you, we will update you asap by posting in this thread.


Thanks for using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for Java v16.12.3 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-42076) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.