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: ) |
Returns "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 ( Click here for more info |
|---|