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

Free Support Forum - aspose.com

PNG output not getting generated for excel chart

Hello,


I am using Aspose.Cells v17.5.6 to generate PNG of chart - “Chart 1” in the attached excel file. The PNG generated is of size 0 bytes.

Following code is used to generate the PNG:

Workbook workbook = new Workbook(“test.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Sheet1”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.setImageFormat(ImageFormat.getPng());
chart.toImage(“aspose response 17.5.6.png”, imgOptions);


Can you please look into this issue.


Thanks,
Neha

Hi,

Thanks for your posting and using Aspose.Cells.

We are afraid, Surface Chart is not supported by Aspose.Cells. We have already logged request for its implementation in our future releases but we are afraid, at the moment, we cannot implement it, because it is too complex for us. So, there are no plans for its implementation in near future.

The support for Surface Chart has already been logged as

  • CELLSJAVA-40316 - Support for Surface Chart
  • CELLSNET-40830 - Rendering of Surface Chart