The colour behind the plot, the padding included, on screen and in the
PNG and SVG exports. A CSS custom property such as "var(--bg)", as any
theme colour, takes the value it has on the plot's element when the
plot draws. After the page changes the property, what the plot drew on
a canvas keeps the old colour until it draws again, as on resize() or
setOptions().
Categorical palette. The default is Okabe-Ito (colour-blind safe, 8 colours); past 8 categories the components switch to PALETTE_20. A palette set here is used as given, its colours repeating past its end. It is an ordered list: the first colour goes to the first group, category or class in the plot's order, the second to the second, and so on. Colours are never matched to groups by name.
OptionalpaddingSpace in px between the edge of the plot's element and everything the
plot draws: axes, tick labels, titles, legends and colour bars. A number
sets all four sides, and an object { top, right, bottom, left } sets
each side, a side left out taking the default of
DEFAULT_PADDING px. The space takes the theme background, and
the PNG and SVG exports keep it. A value that is not a finite number of
0 or more counts as the default. See themePadding.
Visual theme shared across components for a consistent, publication-ready look.