Thanks for your posting and using Aspose.Cells.
We were able to observe this issue after executing the following code using the latest version: Aspose.Cells
for Java v22.214.171.124. Chart.getName() is returning the wrong chart name. It is returning “Chart 1” as chart name, it should return "MyChartSheet"
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-40956.
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.getWorksheets().get("MyChartSheet");
Chart chart = worksheet.getCharts().get(0);
Thanks for using Aspose.Cells for Java.
Please download and try this fix: Aspose.Cells for Java v126.96.36.199 and let us know your feedback.