Interface: TeamSeriesOptions
Defined in: packages/sdvplot/src/lightweight-charts.ts:149
teamSeriesOptions options.
Properties
background?
optionalbackground?:string
Defined in: packages/sdvplot/src/lightweight-charts.ts:173
The chart's background. Given, every colour keeps 3:1 contrast against it (dark mode): a team colour under that
is swapped for the team's other colour, else moved towards white (on a dark background) or black (a light one)
until it reads. A colour that would then sit too close to an earlier team's in teams (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/lightweight-charts.ts:165
The colour of a team that does not resolve. Default "#808080".
idSystem?
optionalidSystem?:IdSystem
Defined in: packages/sdvplot/src/lightweight-charts.ts:163
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/lightweight-charts.ts:151
The league the team belongs to, e.g. "nfl".
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/lightweight-charts.ts:159
The season the team is resolved (and coloured) for.
teams?
optionalteams?: readonlyValue[]
Defined in: packages/sdvplot/src/lightweight-charts.ts:154
Every team on the chart, in order (the team itself among them), so that with background each gets its own
colour. Default: the team alone.
units?
optionalunits?:PriceUnits
Defined in: packages/sdvplot/src/lightweight-charts.ts:157
What the prices are: "probability" (a fraction in [0, 1], read "58.5%") or "american" (odds, read "+150"). Default: Lightweight Charts' own number format.
which?
optionalwhich?:Which
Defined in: packages/sdvplot/src/lightweight-charts.ts:161
"primary" (default) or "secondary".