Interface: TeamChartConfigOptions
Defined in: packages/sdvplot/src/shadcn.ts:42
teamChartConfig options.
Properties
background?
optionalbackground?:object
Defined in: packages/sdvplot/src/shadcn.ts:54
The chart backgrounds the colours must read on (3:1 contrast), as hex. Default shadcn's neutral theme: light
#ffffff (its page and card), dark #171717 (its dark card, oklch(0.205 0 0); a colour that reads on it reads
on the darker dark page, #0a0a0a, too).
dark?
optionaldark?:string
light?
optionallight?:string
icon?
optionalicon?:boolean
Defined in: packages/sdvplot/src/shadcn.ts:56
false: no logos, so shadcn draws its colour swatch for every team. Default true.
iconSize?
optionaliconSize?:number
Defined in: packages/sdvplot/src/shadcn.ts:58
The logo's height in px, 1 or more, rounded to a whole px. Default 16.
idSystem?
optionalidSystem?:IdSystem
Defined in: packages/sdvplot/src/shadcn.ts:48
How the teams values are read. Default "auto".
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/shadcn.ts:46
The season the teams (their names, colours and logos) are resolved for.
which?
optionalwhich?:Which
Defined in: packages/sdvplot/src/shadcn.ts:44
The team colour taken first: "primary" (default) or "secondary".