teamColorScale
[ "#552583", "#008348", "grey" ]
import { loadLeague } from "@sportsdataverse/sdvplot";
import { teamColorScale } from "@sportsdataverse/sdvplot/d3";
await loadLeague("nba");
const color = teamColorScale("nba", { values: ["LAL", "BOS"] });
["LAL", "BOS", "not a team"].map(color);
Tags: docstring · teamColorScale. All sdvplot examples.