Interface: ChartjsColorOptions
Defined in: packages/sdvplot/src/chartjs.ts:362
teamColorPalette options.
Properties
background?
optionalbackground?:string
Defined in: packages/sdvplot/src/chartjs.ts:375
The chart's background, as an opaque hex colour (#181a1b or #000; a CSS colour name or rgb() throws).
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?
optionalfallback?:string
Defined in: packages/sdvplot/src/chartjs.ts:367
The colour of an unresolved team. Default "#808080". A hex colour when background is given.
idSystem?
optionalidSystem?:IdSystem
Defined in: packages/sdvplot/src/chartjs.ts:365
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/chartjs.ts:364
which?
optionalwhich?:Which
Defined in: packages/sdvplot/src/chartjs.ts:363