API REFERENCE
exportPNG
Downloads the chart as a PNG file at exportScale (). Rejects with a ChartLoadError when the type cannot be drawn here.
Definition
exportPNG(): Promise<void>Return type: Promise<void>. Call the method after element registration and await its Promise result.