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
 *                    $registry.myFunction()
 * --------------------------------------------------------
 */
import * as $registry from "@amcharts/amcharts5/Registry";

Variables

Registry does not have any variables.

Functions

addLicense(

license: string

)

#

Returns void

Adds a license, e.g.:

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

Multiple licenses can be added to cover for multiple products.

disposeAllRootElements()

#

Returns void

Disposes all Root elements.

getRootById(

id: string

)

#

Returns any

Finds and returns a Root element assigned to a container with id.

@since 5.9.2