Export Chart

Export charts in high resolution or vector graphic and customise the output to fit your use.

Type

Content extents

Image resolution: 3k pixels

1k
5k

Chart export can be useful for sharing, printing or keeping records of your charts.

In this demo you can adjust the content and size of images to best suit your needs using the extents and fitTo options, and export to a range of common formats.

The chart.export() function can be used to create raster images in high resolution, and vector images in SVG or PDF, preserving the important details of your KeyLines charts in all of the available output types.

For SVG, the export is optimised for viewing at full zoom, ensuring all details are crisp, even on the largest charts.

While here we show how to create a simple PDF with a full page chart image, it is also possible to incorporate charts into more content rich reports with PDF. See our PDF Reports demo for more information.

For further details read our documentation on Chart Export.

Saving image vs. saving chart

This demo saves an image of a chart and does not contain any other information or meta-data about the state of the chart.

If you want to be able to reload the state of the chart, use chart.serialize() as seen in the Save & Load Charts demo.

Key functions used: