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.

// Import Theme
import * as am5 from "@amcharts/amcharts5";

// Create Theme
am5.Theme.new(root, {
  // ... config if applicable
});
<!-- Load Theme -->
<script src="index.js"></script>

<script>
// Create Theme
am5.Theme.new(root, {
  // ... config if applicable
});
</script>

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.