Skip to main content

Interface: UPlotSeriesOptions

Defined in: packages/sdvplot/src/uplot.ts:161

withTeamSeries options.

Properties​

background?​

optional background?: string

Defined in: packages/sdvplot/src/uplot.ts:181

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.


fallback?​

optional fallback?: string

Defined in: packages/sdvplot/src/uplot.ts:173

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


fill?​

optional fill?: number

Defined in: packages/sdvplot/src/uplot.ts:183

Also fill the area under each line in its colour, at this opacity in [0, 1]. Default: no fill.


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/uplot.ts:171

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


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/uplot.ts:165

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


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/uplot.ts:167

The season the teams are resolved (and coloured) for.


team​

team: string

Defined in: packages/sdvplot/src/uplot.ts:163

Name of the row column holding the team (abbreviation, name or id; see idSystem).


which?​

optional which?: Which

Defined in: packages/sdvplot/src/uplot.ts:169

"primary" (default) or "secondary".