Skip to content

MonochromeTheme

Type module

Sources

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

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

Variables

MonochromeTheme does not have any variables.

Functions

MonochromeTheme(root: Root,
settings: IMonochromeThemeSettings
)

Returns Theme

"Monochrome": a single-hue theme. Its series colors are an even ramp of shades of one color, from lighter to darker, with an optional accent first.

It is a function rather than a class, so that it can take settings:

root.setThemes([
  am5themes_Monochrome(root, { color: 0x2c6e91, dark: true })
]);

With nothing set, the ramp is blue (#2e7c9e).

More info: Themes