Skip to content

Dataset

Defined in: types/index.ts:113

A single named series of numeric values.

data.length must equal labels.length of the parent ResolvedData.

optional color?: string

Defined in: types/index.ts:119

Override the auto-assigned series colour.


optional colors?: (string | undefined)[]

Defined in: types/index.ts:125

Per-datum colour overrides, indexed in parallel with data. Sparse arrays are fine — falsy entries fall back through the resolver chain (colorFnDataset.color → theme palette).


data: number[]

Defined in: types/index.ts:117

Series values, one per labels[] entry on the parent ResolvedData.


label: string

Defined in: types/index.ts:115

Display name shown in legends and tooltips.