Skip to main content

Function: teamColorPalette()

teamColorPalette(league, teams, o?): string[]

Defined in: packages/sdvplot/src/echarts.ts:353

One colour per team, in order, for option.color.

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​

string[]