logos
import * as Plot from "@observablehq/plot";
import { loadLeague } from "@sportsdataverse/sdvplot";
import { logos } from "@sportsdataverse/sdvplot/plot";
await loadLeague("nfl");
const afc = [
{ team: "KC", net_epa: 0.063 },
{ team: "LAC", net_epa: 0.101 },
{ team: "DEN", net_epa: 0.108 },
{ team: "BUF", net_epa: 0.19 },
];
Plot.plot({ height: 160, marks: [logos(afc, Plot.dodgeY({ league: "nfl", team: "team", x: "net_epa", r: 12, height: 0.18 }))] });
Tags: docstring · logos. All sdvplot examples.