Export Chart
Contents
[
Hide
]
Get Chart Image
Aspose.Slides for Node.js via Java provides support for extracting image of specific chart. Below sample example is given.
var pres = new aspose.slides.Presentation();
try {
var chart = pres.getSlides().get_Item(0).getShapes().addChart(aspose.slides.ChartType.ClusteredColumn, 50, 50, 600, 400);
var slideImage = chart.getImage();
try {
slideImage.save("image.jpg", aspose.slides.ImageFormat.Jpeg);
} finally {
if (slideImage != null) {
slideImage.dispose();
}
}
} finally {
if (pres != null) {
pres.dispose();
}
}