Skip to main content

Function: teamColorScale()

teamColorScale(league, teams, o?): object

Defined in: packages/sdvplot/src/vega.ts:503

{ domain, range } for encoding.color.scale: the values as given, their team colours.

Parameters​

league​

"aaf" | "ahl" | "cfb" | "cricket" | "echl" | "mbb" | "milb" | "mlb" | "nba" | "nbagl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "ohl" | "phf" | "pwhl" | "qmjhl" | "soccer" | "ufl" | "usfl" | "ushl" | "wbb" | "whl" | "wnba" | "xfl"

teams​

readonly unknown[]

o?​

fallback?​

string

idSystem?​

IdSystem

season?​

SeasonInput

which?​

"primary" | "secondary"

Returns​

object

domain​

domain: string[]

range​

range: string[]