Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
AAmanda-Tai
Last edited Nov 19, 2022
Created on Nov 19, 2022

This example demonstrates how to load and parse CSV data using D3 v5 within a React framework. It fetches a Spotify dataset from GitHub and displays the file size, row count, and column count in a large text format. The code primarily uses `d3.csv` with a promise-based `.then()` method, while commented-out alternatives show implementations using `fetch` with async/await and `d3.csvParse`. A commented "pyramid of doom" example illustrates older nested promise patterns. The visualization is minimal, focusing on the data-loading process rather than graphical representation.

AI-generated description
MIT Licensed

Similar vizzes