Skip to content

grafit-charts


Interface: ThemeParams ​

Flat design tokens; the keys mirror the resolved theme one to one.

Properties ​

axisColor? ​

optional axisColor?: string

Axis lines, ticks and grid — light grey by default.


backgroundColor? ​

optional backgroundColor?: string


cornerRadius? ​

optional cornerRadius?: number

Corner rounding of every rectangular mark; unset keeps each mark's own default.


fillOpacity? ​

optional fillOpacity?: number

Fill opacity of every filled mark; unset keeps each mark's own default.


fontFamily? ​

optional fontFamily?: string


fontSize? ​

optional fontSize?: number

Base label size (11). Every other size moves with it.


foregroundColor? ​

optional foregroundColor?: string


lineDash? ​

optional lineDash?: number[]

Dash pattern of data lines; solid unless a series says otherwise.


markStrokeWidth? ​

optional markStrokeWidth?: number

Outline width of filled marks — bars, sectors, boxes. Not a data line.


mutedColor? ​

optional mutedColor?: string

Secondary text: axis labels, the subtitle, legend values, tooltip rows.


negativeColor? ​

optional negativeColor?: string


positiveColor? ​

optional positiveColor?: string

Growth and decline: candlesticks, OHLC bars, falling waterfall columns.


strokeWidth? ​

optional strokeWidth?: number

Data line width — line/area/radar strokes, never a shape outline.