I am using Aspose.Cells v18.2.1 to generate PNG of chart - “Chart 1” in the attached excel file. In original chart there are arrows pointing to the bars, which are missing in the PNG output.
Following code is used to generate the output:
Workbook workbook = new Workbook("test.xlsx"); WorksheetCollection ws = workbook.getWorksheets(); String worksheetName = "WP2020"; Chart chart = ws.get(worksheetName).getCharts().get("Chart 1"); ImageOrPrintOptions imgOptions = new ImageOrPrintOptions(); imgOptions.setImageFormat(ImageFormat.getPng()); chart.toImage("aspose response 18.2.1.png", imgOptions);
PFA below the source excel and PNG output:
attachments.zip (147.4 KB)
Can you please analyse this issue.