Function: wordmarkDots()
wordmarkDots<
R,X,Y>(rows,o):TanstackImageDot<R,X,Y>[]
Defined in: packages/sdvplot/src/tanstack.ts:298
Team wordmarks as TanStack dot marks, each wordmark size px tall at its own aspect ratio. The dot's radius is
the half-diagonal of the wordmark's box, so a wide wordmark gets a large dot. As logoDots otherwise.
Type Parameters
R
R extends object
X
X extends string
Y
Y extends string
Parameters
rows
readonly R[]
o
TanstackDotOptions<X, Y>
Returns
TanstackImageDot<R, X, Y>[]
Example
import { loadLeague } from "@sportsdataverse/sdvplot";
import { drawnMarks, wordmarkDots } from "@sportsdataverse/sdvplot/tanstack";
await loadLeague("nfl");
// [team id, x, y, height in px, wordmark URL]
drawnMarks(wordmarkDots([{ team: "LV", wins: 4, week: 18 }], { x: "week", y: "wins", team: "team", league: "nfl", size: 20 }));