Skip to content

ISvgExportOptions

Type interfaceSince 5.21.0

Options for renderToSVG.

Sources

ISvgExportOptions is an interface: it describes a shape of data and is not imported on its own.

Properties

background

Type undefined | stringSince 5.21.0

CSS color to fill the image with, behind the chart.

Transparent if not set.

height

Type undefined | number

Height of the SVG in pixels. Defaults to the chart's height when a Root or an element of a chart is passed.

idPrefix

Type undefined | stringDefault "am5-"

Prefix for ids in <defs>; needed when several SVGs share a page.

precision

Type undefined | numberDefault 3

Decimal places for coordinates.

title

Type undefined | string

Name of the image for screen readers, written as the SVG's <title>.

Defaults to the chart's ariaLabel (Root setting), if it has one.

width

Type undefined | number

Width of the SVG in pixels. Defaults to the chart's width when a Root or an element of a chart is passed.