Skip to main content

headshotDots

{
  "href": "https://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/3139477.png",
  "x": 0.0955153814576048,
  "y": 0.2060745105258595,
  "width": 0.8089692370847904,
  "height": 0.587850978948281
}
import { headshotDots } from "@sportsdataverse/sdvplot/tanstack";

const rows = [{ qb: "3139477", yards: 3928, tds: 26 }];
headshotDots(rows, { x: "yards", y: "tds", player: "qb", league: "nfl", size: 40 })[0]?.pattern;

Tags: docstring · headshotDots. All sdvplot examples.