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

Variables

MonochromeTheme does not have any variables.

Functions

MonochromeTheme(

root: Root,
settings: IMonochromeThemeSettings

)

#

Returns Theme

"Monochrome" — a black-and-white (or single-accent) theme whose series palette is a perceptually-even, single-hue lightness ramp generated in OKLCH.

Because a theme cannot take constructor parameters, this ships as a factory function rather than a class:

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

With nothing set, the theme defaults to a blue ramp (#2e7c9e). Pass color for a different single-hue ramp, and an optional accent to give the first series a distinct pop (like the "Dataviz" theme's single color). This theme is additive; it does not modify any built-in theme.

Click here for more info
@important