Wiki

Clone wiki

Aspose Java for Docx4j / Convert-Chart-to-Image

Aspose.Cells

//Get the Chart image
ImageOrPrintOptions imgOpts = new ImageOrPrintOptions();
imgOpts.setImageFormat(ImageFormat.getPng());

//Save the chart image file.
chart.toImage(new FileOutputStream(dataPath + "AsposeChartImage_Out.png"), imgOpts);

Download Source Code

For More Examples, Please Visit Aspose Docs

Updated