exportImage

Exports the chart as an image.

Inherited from Chart.exportImage

Parameters

options Object (optional)Parameters for the exported image.
options.width StringThe width of the exported image. Defaults to the chart width.
options.height StringThe height of the exported image. Defaults to the chart height.

ReturnsPromise A promise that will be resolved with a PNG image encoded as a Data URI.

In this article
Not finding the help you need?