Function: wordmarkMark()
wordmarkMark(
rows,o):G2ImageMark
Defined in: packages/sdvplot/src/g2.ts:243
Team wordmarks as a G2 image mark, size px tall at their own aspect ratio; as logoMark otherwise.
Parameters
rows
readonly Row[]
o
Returns
Example
import { loadLeague } from "@sportsdataverse/sdvplot";
import { drawnMarks, wordmarkMark } from "@sportsdataverse/sdvplot/g2";
await loadLeague("nfl");
// [team id, x, y, height in px, wordmark URL]: each wordmark 20 px tall, as wide as its own shape
drawnMarks(wordmarkMark([{ team: "LV", wins: 4, week: 18 }], { x: "week", y: "wins", team: "team", league: "nfl", size: 20 }));