Exports

AnyChart allows to save charts in different formats. It may be an image or pdf file.

AnyChart supports tree image-file formats: SVG, PNG, JPG and document-file format format: PDF. Any chart can be exported into each of these formats. All methods for all of this export formats are represented below:

  chart.saveAsSVG(); // this method will save the chart in SVG format
  chart.saveAsPNG(); // this method will save the chart in PNG format
  chart.saveAsJPG(); // this method will save the chart in JPG format
  chart.saveAsPDF(); // this method will save the chart in PDF format

Here is a sample with buttons which represent each of methods mentioned above.

JsFiddle Playground

You are looking at an outdated 7.3.0 version of this document. Switch to the 8.0.1 version to see the up to date information.