Interface: UPlotSeriesOptions
Defined in: packages/sdvplot/src/uplot.ts:161
withTeamSeries options.
Properties
background?
optionalbackground?: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?
optionalfallback?:string
Defined in: packages/sdvplot/src/uplot.ts:173
The colour of an unresolved team. Default "#808080".
fill?
optionalfill?: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?
optionalidSystem?: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?
optionalseason?: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?
optionalwhich?:Which
Defined in: packages/sdvplot/src/uplot.ts:169
"primary" (default) or "secondary".