Skip to main content

Interface: TeamChartConfig

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

What teamChartConfig returns.

Properties​

config​

config: Record<string, TeamChartConfigItem>

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

shadcn's ChartConfig, keyed by keys: pass it to <ChartContainer config>.


keys​

keys: string[]

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

keys[i] is teams[i]'s key in config: name a series' dataKey with it, colour it var(--color-<key>), and put it in a row column for <ChartTooltipContent nameKey>. A clash is numbered in the order of teams (lal, lal-2), so read the key here rather than recomputing it, and pass each team once.