ExportConfig

interface ExportConfig<C extends Chart>

An interface that defines the parameters for a call to the exportPng function.

Type parameters

  • C: Chart

Properties

chart

chart: C

The Chart to export.

filename

filename: undefined | string

The filename for the exported PNG.

pixelRatio

pixelRatio: undefined | number

The pixel ratio of the rendered PNG. Using a number larger than 1 will over-render the PNG, making it larger. Using smaller numbers currently has strange behavior, and it’s not recommended.