Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Historical NBA Performance

Public visualization

Viewing a saved revision (read-only)

03680b498d0b43e99510a0254475a509

Historical NBA Performance

0 stars1🌍 Public
QQingyang Wang Profolio
Last edited Feb 13, 2023
Created on Jan 23, 2023
Forked from Loading Data

This example visualizes historical win-loss records for every NBA team, showing winning rates over time. The data is fetched as CSV and parsed with `d3.csvParse`. While loading, the state flag triggers a re-render; the code currently outputs the parsed data as raw JSON text in a `pre` element using `d3.select` and `.text()`. The visualization logic is scaffolded through a `viz` function that manages state transitions via a `setState` callback, with the fetch initiated when `state.data` is undefined.

AI-generated description

Dataset source from: https://data.world/gmoney/nba-team-records-by-year

This dataset shows historical game record for each team in NBA. It also includes the winning rate for each team in each year.