Skip to main content

Interface: TanstackDotOptions<X, Y>

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

logoDots / wordmarkDots options.

Extends​

  • Shared

Type Parameters​

X​

X extends string = string

Y​

Y extends string = string

Properties​

alpha?​

optional alpha?: number

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

Opacity in [0, 1]: the dot's fillOpacity. Default 1.

Inherited from​

Shared.alpha


embed?​

optional embed?: ReadonlyMap<string, string>

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

url → data URI map from embedSources, to inline the images (needed for an image export).

Inherited from​

Shared.embed


id?​

optional id?: string

Defined in: packages/sdvplot/src/tanstack.ts:114

The start of each dot mark's id and pattern id. Default "sdv-logo", "sdv-wordmark" or "sdv-headshot"; give another when a chart draws the same images twice (TanStack needs each mark id once). Letters, digits, _ and - only (it becomes an SVG id); anything else throws InputError.

Inherited from​

Shared.id


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/tanstack.ts:131

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/tanstack.ts:125

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


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/tanstack.ts:127

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/tanstack.ts:104

Image height in px, 1 or more. Default 24.

Inherited from​

Shared.size


team​

team: string

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

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


variant?​

optional variant?: Variant

Defined in: packages/sdvplot/src/tanstack.ts:129

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


x​

x: X

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

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


y​

y: Y

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

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