Skip to main content

logoDot

350375400425450280300320340350
import { loadLeague } from "@sportsdataverse/sdvplot";
import { logoDot } from "@sportsdataverse/sdvplot/recharts";
import { Scatter, ScatterChart, XAxis, YAxis } from "recharts";

await loadLeague("nfl");
const rows = [
{ team: "KC", pf: 385, pa: 326 },
{ team: "LAC", pf: 402, pa: 301 },
];
<ScatterChart width={400} height={300}>
<XAxis dataKey="pf" type="number" domain={[350, 450]} />
<YAxis dataKey="pa" type="number" domain={[280, 350]} />
<Scatter data={rows} shape={logoDot({ team: "team", league: "nfl", size: 32 })} />
</ScatterChart>;

Tags: docstring · logoDot. All sdvplot examples.