Hello,
I am using Aspose.Cells v19.4 to generate PNG of chart - “Chart” in the attached excel file. The PNG output is not the same as the original chart.
Following code is used to generate the output:
Workbook workbook = new Workbook(“Test.xlsb”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Sheet”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart”);
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.setImageType(ImageType.PNG);
chart.toImage(“aspose response 19.4.png”, imgOptions);
PFA below the source excel and PNG output:
attachments.zip (792.1 KB)
Can you please look into this.
Thanks,
Neha