Skip to main content

Interface: TeamThemeOptions<T>

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

teamTheme options: the teams, in the order the chart draws them, and an optional theme to build on.

Extends​

Type Parameters​

T​

T extends object = Record<never, never>

Properties​

background?​

optional background?: string

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

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 (lightness, hue or chroma stepped) that is distinct and still reads; failing that it is kept, with one warning.

Inherited from​

VictoryColorOptions.background


base?​

optional base?: T

Defined in: packages/sdvplot/src/victory.ts:65

The theme to build on, e.g. VictoryTheme.clean; its axes, fonts and every other key are kept. Default none: the result then holds only the colours, and Victory draws everything else unstyled.


fallback?​

optional fallback?: string

Defined in: packages/sdvplot/src/victory.ts:21

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

Inherited from​

VictoryColorOptions.fallback


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/victory.ts:19

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

Inherited from​

VictoryColorOptions.idSystem


league​

league: "aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

Defined in: packages/sdvplot/src/victory.ts:58

The league the teams belong to, e.g. "nfl".


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/victory.ts:17

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

Inherited from​

VictoryColorOptions.season


teams​

teams: readonly unknown[]

Defined in: packages/sdvplot/src/victory.ts:60

Every team the chart draws, in order: a group's or stack's i-th child takes the i-th colour.


which?​

optional which?: Which

Defined in: packages/sdvplot/src/victory.ts:15

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

Inherited from​

VictoryColorOptions.which