Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming data of Historical NBA Performance

Public visualization

Viewing a saved revision (read-only)

f6d33b5f099f414688a791183173041a

Transforming data of Historical NBA Performance

0 stars0🌍 Public
QQingyang Wang Profolio
Last edited Jan 30, 2023
Created on Jan 30, 2023

This example displays historical average winning percentages for NBA teams, computed from a CSV dataset and rendered as a JSON array. The visualization uses D3 v7’s `flatRollup` and `sum` functions to aggregate win percentages per team across all seasons. After fetching the data via a URL, `csvParse` converts the CSV string into objects. The computed results are output as formatted text inside a `<pre>` element, demonstrating a straightforward data-transformation pipeline without additional chart rendering.

AI-generated description

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

In this transfroming data, I calcualte the historical average winning percentage for each team and put them into different array.