Skip to content

Documentation / @ripl/charts / Theme

Interface: Theme ​

Defined in: charts/src/core/theme.ts:21

The palette and furniture colors a chart renders with.

Properties ​

PropertyTypeDescriptionDefined in
axisColorstringColor of axis tick labels.charts/src/core/theme.ts:31
crosshairColorstringColor of crosshair lines.charts/src/core/theme.ts:35
fontstringBase CSS font shorthand for chart text.charts/src/core/theme.ts:27
gridColorstringColor of grid lines.charts/src/core/theme.ts:33
legendColorstringLegend label color.charts/src/core/theme.ts:37
palettestring[]Categorical series/segment palette, cycled for unassigned series.charts/src/core/theme.ts:23
sequentialSchemestring[]Two-or-more color stops (low→high) used as the default sequential color scale (e.g. heatmap).charts/src/core/theme.ts:25
textColorstringColor of titles, data labels, and segment labels.charts/src/core/theme.ts:29
tooltipBackgroundstringTooltip background color.charts/src/core/theme.ts:39
tooltipColorstringTooltip text color.charts/src/core/theme.ts:41