Skip to main content

Interface: TeamChartConfigOptions

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

teamChartConfig options.

Properties​

background?​

optional background?: 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?​

optional dark?: string

light?​

optional light?: string


icon?​

optional icon?: boolean

Defined in: packages/sdvplot/src/shadcn.ts:56

false: no logos, so shadcn draws its colour swatch for every team. Default true.


iconSize?​

optional iconSize?: 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?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/shadcn.ts:48

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


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/shadcn.ts:46

The season the teams (their names, colours and logos) are resolved for.


which?​

optional which?: Which

Defined in: packages/sdvplot/src/shadcn.ts:44

The team colour taken first: "primary" (default) or "secondary".