Skip to main content

Interface: RechartsHeadshotOptions

Defined in: packages/sdvplot/src/recharts.ts:77

headshotDot options.

Extends​

  • Shared

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/recharts.ts:53

Opacity in [0, 1]. Default 1.

Inherited from​

Shared.alpha


embed?​

optional embed?: ReadonlyMap<string, string>

Defined in: packages/sdvplot/src/recharts.ts:61

url → data URI map from embedSources, to inline the images.

Inherited from​

Shared.embed


idSystem?​

optional idSystem?: HeadshotIdSystem

Defined in: packages/sdvplot/src/recharts.ts:83

ESPN athlete ids, or nflverse gsis ids (needs loadGsis() first). Default "espn".


last?​

optional last?: boolean

Defined in: packages/sdvplot/src/recharts.ts:59

Draw only at the series' last point: an end-dot on a trend line. Default false. It needs the series' points, which Recharts hands a Line's or Area's dot but not a Scatter's shape: there every point is drawn, with one warning.

Inherited from​

Shared.last


league​

league: "cfb" | "mbb" | "mlb" | "nba" | "nfl" | "nhl" | "wbb" | "wnba"

Defined in: packages/sdvplot/src/recharts.ts:81

The league the players belong to, e.g. "nfl".


player​

player: string

Defined in: packages/sdvplot/src/recharts.ts:79

Name of the data row column holding the player id.


size?​

optional size?: number

Defined in: packages/sdvplot/src/recharts.ts:51

Image height in px, 1 or more (Recharts hands a render prop no plot height to take a fraction of). Default 24.

Inherited from​

Shared.size