exportImage
Exports the chart as an image.
Inherited from Chart.exportImage
Parameters
options Object
(optional)
Parameters for the exported image.
options.width String
The width of the exported image. Defaults to the chart width.
options.height String
The height of the exported image. Defaults to the chart height.
Returns
Promise
A promise that will be resolved with a PNG image encoded as a Data URI.
In this article