Skip to main content

teamColorPalette

[
  "#e31837",
  "#a5acaf"
]
import { loadLeague } from "@sportsdataverse/sdvplot";
import { teamColorPalette } from "@sportsdataverse/sdvplot/unovis";

await loadLeague("nfl");
// new Line({ x, y: [kc, phi], color: <this> })
teamColorPalette("nfl", ["KC", "PHI"], { background: "#111827" });

Tags: docstring · teamColorPalette. All sdvplot examples.