Skip to main content

Tutorials

These tutorials start from real data and end at something you would publish: a scoreboard, a win-probability chart, a game dashboard, a ratings chart, a player's form. They come in two halves that link to each other.

  • Live notebooks, here. Observable Framework pages that run sdvplot-js in your browser. Each draws a committed snapshot of ESPN data and has a Fetch live from ESPN toggle: your browser then fetches today's data and parses it with sportsdataverse-js's own parser.
  • Node scripts, in sportsdataverse-js. Runnable scripts that fetch with sportsdataverse and draw with sdvplot-js in Node: static figures, PNGs and scheduled GitHub Actions.
Versions

The sportsdataverse-js side needs sportsdataverse 4.0.0 or later and the @sportsdataverse/* packages at 0.1.0 or later. Until both are on npm, the scripts run from source checkouts; the notebooks need nothing installed.

Workflows with sdv-js (live notebooks)​

Charts, tables and automations with sdvplot-js (Node scripts)​

The sportsdataverse-js tutorials that draw with sdvplot-js. Each page shows the full script and the output it produced; the notebook beside it works through the same idea live.

The rest of the sportsdataverse-js tutorials cover the data side: scoreboards, play-by-play, standings, odds and release datasets across the leagues it covers.

See also​