Skip to main content

tennis: atp

import { surface } from "@sportsdataverse/sporty";
import { toSVG } from "@sportsdataverse/sporty/svg";

// arcs "svg" writes each circle as one arc command; precision 2 keeps 0.01 of a unit. Same drawing, ~8x smaller.
toSVG(surface("tennis", "atp"), { width: 640, arcs: "svg", precision: 2 });

Tags: surface · tennis · atp. All sporty examples.