Skip to content

seriesColor

seriesColor(theme, ds, idx): string

Defined in: core/draw.ts:25

Resolve the colour for a series. Honours dataset.color overrides; otherwise cycles through the theme palette modulo length so charts with more series than colours still get something.

Parameters

theme

Theme

ds

Dataset | undefined

idx

number

Returns

string