API REFERENCE
theme
The theme used for chart colors and typography. Pass a theme name or a supported theme object. Page and chart themes are separate; update both in your app.
Definition
| Item | Value |
|---|---|
| JavaScript property | theme |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | ChartThemeName | ChartTheme |
| Default | undefined |
| Literals in the type | light, dark, high-contrast |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
- ChartThemeName
Type definition
- ChartTheme
Type definition