Skip to content

Registry

Type module

Sources

Items from Registry can be imported/included and used via following ways.

/**
* Import via: Registry.ts
* Access items like: $registry.myVariable
*/
import * as $registry from "@amcharts/amcharts5/Registry";

Variables

Registry does not have any variables.

Functions

addLicense(license: string)

Returns void

Adds a license key, e.g.:

am5.addLicense("xxxxxxxx");
am5.addLicense("xxxxxxxx");

Call it once per key to add licenses for several products.

disposeAllRootElements()

Returns void

Disposes all Root elements.

getRootById(id: string)

Returns anySince 5.9.2

Returns the Root whose container element has this id.