🌍 Public
Historical NBA Performance
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 descriptionDataset 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.
MIT Licensed
Comments
Sign in to join the discussion.