Theme

Type class

A base class for an amCharts theme.

Click here for more info

Sources

Theme can be used (imported) via one of the following packages.

// Theme is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Import from: "index.ts"
 * Use like: am5.Theme
 * --------------------------------------------------------
 */
import * as am5 from "@amcharts/amcharts5";

// Theme is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Include via: <script src="index.js"></script>
 * Access items like: am5.Theme
 * --------------------------------------------------------
 */

Inheritance

Theme does not extend any other symbol.

Theme is extended by ResponsiveTheme.

Settings

Theme does not have any settings.

Private settings

Theme does not have any private settings.

Properties

Theme does not have any properties.

Methods

constructor(

root: Root,
isReal: boolean

)

#

Returns Theme

new(

root: Root

)

#

Static

Returns InstanceType

Use this method to create an instance of this class.

Click here for more info

rule(

themeClass: K,
themeTags: Array

)

#

Returns Template

Creates a Template for specific theme class and tags.

Click here for more info

ruleRaw(

themeClass: string,
themeTags: Array

)

#

Returns Template

Creates a Template for specific theme class and tags.

NOTE: the difference from rule() is that ruleRaw() does not do any type checks.

Click here for more info

Events

Theme does not have any events.