Skip to main content

Interface: G2MarkOptions

Defined in: packages/sdvplot/src/g2.ts:111

logoMark / wordmarkMark options.

Extends​

  • Shared

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/g2.ts:106

Opacity in [0, 1]. Default 1.

Inherited from​

Shared.alpha


embed?​

optional embed?: ReadonlyMap<string, string>

Defined in: packages/sdvplot/src/g2.ts:108

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

Inherited from​

Shared.embed


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/g2.ts:125

How the team values are read. Default "auto".


league​

league: "aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

Defined in: packages/sdvplot/src/g2.ts:119

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


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/g2.ts:121

A season (number or string) for every row, or the name of a row field holding each row's season.


size?​

optional size?: number

Defined in: packages/sdvplot/src/g2.ts:104

Image height in px, 1 or more (G2 sizes an image mark in px). Default 24.

Inherited from​

Shared.size


team​

team: string

Defined in: packages/sdvplot/src/g2.ts:117

Name of the row field holding the team (abbreviation, name or id; see idSystem).


variant?​

optional variant?: Variant

Defined in: packages/sdvplot/src/g2.ts:123

Logo variant, e.g. "dark". Default "default".


x​

x: string

Defined in: packages/sdvplot/src/g2.ts:113

Name of the row field holding each mark's x position (the field the chart's x channel encodes).


y​

y: string

Defined in: packages/sdvplot/src/g2.ts:115

Name of the row field holding each mark's y position.