Skip to main content

Function: appendSurface()

appendSurface<G, D>(sel, league, o): Sel<SVGGElement, D>

Defined in: packages/sdvplot/src/d3/index.ts:195

Paint a league's surface (in team's colours) into sel through the caller's x/y scales. Throws InputError for a league with no surface.

Type Parameters​

G​

G extends SVGGElement | SVGSVGElement

D​

D

Parameters​

sel​

Sel<G, D>

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​

D3SurfaceOptions

Returns​

Sel<SVGGElement, D>