sdvplot-js docs ยท View source

sdvplot-js notebooks

Twelve live notebooks that run the sdvplot-js packages in your browser: @sportsdataverse/sdvplot for team identity, shot charts, linking and chart-library adapters, @sportsdataverse/sporty for playing surfaces, and @sportsdataverse/sdvtables for tables. Each control re-runs only the cells that read it, and every chart draws real data: the bundled team index (one league at a time, loaded on demand), the 2024 NFL season from nflverse, Brooklyn's 2025-26 shots against the whole league, and single games from stats.nba.com, the NHL, the PWHL and ESPN. The last five start from ESPN through sportsdataverse-js and can fetch today's data.

Identity

Surfaces

Shot charts

Tables

Linking

Chart libraries

Workflows with sdv-js

Five pages that start from ESPN data fetched with sportsdataverse-js and end at a chart or a table someone would publish. Each draws a committed snapshot (its URL, capture time and sha256 are on the page) and has a Fetch live from ESPN toggle: tick it and your browser fetches today's data from ESPN and parses it with sdv-js's own parser.

Each page links to its source. The pages import the packages from ./_sdv/, a bundle of their source made at build time; your own code imports @sportsdataverse/sdvplot, @sportsdataverse/sporty and @sportsdataverse/sdvtables by name. The documentation has the guides, the gallery and the API reference.