Skip to main content

Interface: TanstackColorOptions

Defined in: packages/sdvplot/src/tanstack.ts:27

teamColorPalette / teamColorScale options.

Properties​

background?​

optional background?: string

Defined in: packages/sdvplot/src/tanstack.ts:42

The chart's background. Given, a team colour under 3:1 contrast against it is swapped for the team's other colour, else moved towards white (on a dark background) or black (a light one) until it reads: dark mode. A colour that would then sit too close to an earlier team's (CIE76 ΔE under 20) takes the team's other colour, or the nearest colour to its own that is distinct and still reads; failing that it is kept, with one warning.


fallback?​

optional fallback?: string

Defined in: packages/sdvplot/src/tanstack.ts:35

The colour of an unresolved team. Default "#808080".


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/tanstack.ts:33

How the team values are read. Default "auto".


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/tanstack.ts:31

The season the teams are resolved for (a number or string).


which?​

optional which?: Which

Defined in: packages/sdvplot/src/tanstack.ts:29

"primary" (default) or "secondary" colour.