API REFERENCE

getSVG

Returns the chart as standalone SVG markup (canvas families wrap their raster); the drawing overlay rides along as a nested layer, and the brand is the last layer over everything. Keeps its string | null contract: null when the type cannot be drawn here (see getDataTable) or there is no surface yet.

Definition

typescript
getSVG(): Promise<string | null>

Return type: Promise<string | null>. Call the method after element registration and await its Promise result.