Skip to main content

wordmarkMark

[
  [
    "13",
    18,
    4,
    20,
    "https://sdv.nyc3.cdn.digitaloceanspaces.com/assets/public/sha256/c2/c22afa5471cd8e08e9c42f06df3d90f6b88b1b95fc16b4da5e610737a8fe7dac.png"
  ]
]
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 }));

Tags: docstring · wordmarkMark. All sdvplot examples.