ISvgExportOptions

Type interface

Options for renderToSVG.

@since 5.21.0

Inheritance

ISvgExportOptions does not extend any other symbol.

ISvgExportOptions is not extended by any other symbol.

Properties

background
#

Type undefined | string

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

Transparent if not set.

@since 5.21.0

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 | string

Default "am5-"

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

precision
#

Type undefined | number

Default 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.