# Export FlexChart

Learn how to export Wijmo's FlexChart to different formats in this documentation topic

## Content

Saving charts as images for inclusion in other documents is a common requirement. Some browsers support this as a context menu option, but not all.

![Chart Export](https://cdn.mescius.io/document-site-files/images/3c7113e2-10b3-45ed-8f3b-9fb1e0af2b74/chart/chart-export.png)

The FlexChart's _saveImageToFile_ method makes this really easy to handle programmatically. Supported file formats include PNG, JPEG and SVG.

For example, inside a button click event.:

```JavaScript
// save chart image to file
document.getElementById('saveButton').addEventListener('click', function(e) {
  	if (e.target instanceof HTMLButtonElement) {
    	myChart.saveImageToFile('FlexChart.png');
    }
  })
```
