# Export Presentation Charts in JavaScript

> Learn how to export presentation charts with Aspose.Slides for Node.js via Java, supporting PPT and PPTX formats, and streamline reporting into any workflow.

Source: https://docs.aspose.com/slides/nodejs-java/export-chart/
Updated: 2026-08-05


## **Overview**

Aspose.Slides allows you to export a chart from a presentation as an image. This article shows how to get an image from a chart and save it, which is useful when you need to reuse chart visuals outside a PowerPoint presentation.

## **Get Chart Image**
Aspose.Slides for Node.js via Java provides support for extracting image of specific chart. Below sample example is given. 

```javascript
var aspose = aspose || {};
aspose.slides = require("aspose.slides.via.java");

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();
    }
}
```

## **FAQ**

### Can I export a chart as a vector (SVG) instead of a raster image?

Yes. A chart is a shape, and its contents can be saved to SVG using the [shape-to-SVG saving method](https://reference.aspose.com/slides/nodejs-java/aspose.slides/shape/writeassvg/).

### How can I set the exact size of the exported chart in pixels?

Use the image-rendering overloads that let you specify size or scale—the library supports rendering objects with given dimensions/scale.

### What should I do if fonts in labels and the legend look wrong after export?

[Load the required fonts](/slides/nodejs-java/custom-font/) via [FontsLoader](https://reference.aspose.com/slides/nodejs-java/aspose.slides/fontsloader/) so the chart rendering preserves metrics and text appearance.

### Does export honor the PowerPoint theme, styles, and effects?

Yes. Aspose.Slides’ renderer follows the presentation’s formatting (themes, styles, fills, effects), so the chart’s appearance is preserved.

### Where can I find available rendering/export capabilities beyond chart images?

See the [API](https://reference.aspose.com/slides/nodejs-java/aspose.slides/)/[documentation](/slides/nodejs-java/convert-powerpoint/) for output targets ([PDF](/slides/nodejs-java/convert-powerpoint-to-pdf/), [SVG](/slides/nodejs-java/render-a-slide-as-an-svg-image/), [XPS](/slides/nodejs-java/convert-powerpoint-to-xps/), [HTML](/slides/nodejs-java/convert-powerpoint-to-html/), etc.) and related rendering options.

