Skip to main content

Function: matchupColorsSync()

matchupColorsSync(teamA, teamB, opts): MatchupColors

Defined in: packages/sdvplot/src/matchup-colors.ts:180

matchupColors once the league is loaded (loadLeague or preloadAll).

Parameters​

teamA​

Value

teamB​

Value

opts​

MatchupColorOptions

Returns​

MatchupColors

Example​

import { loadLeague, matchupColorsSync } from "@sportsdataverse/sdvplot";

await loadLeague("cfb");
matchupColorsSync("Alabama", "Georgia", { league: "cfb" });