Skip to main content

Function: teamColor()

teamColor<T>(teams, league, o?): ColorsFor<T>

Defined in: packages/sdvplot/src/chartjs.ts:343

Team colour(s) for backgroundColor / borderColor: one team gives one string, an array gives one per team.

Type Parameters​

T​

T extends Value | readonly Value[]

Parameters​

teams​

T

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"

o?​

TeamColorOptions = {}

Returns​

ColorsFor<T>