Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
PPatrick Byron Gattoc
Last edited Sep 26, 2021
Created on Sep 26, 2021

This example demonstrates how to load and parse a CSV file containing CSS Named Colors using D3 v5 and React. The page displays a summary of the dataset—its size in kilobytes, number of rows, and number of columns—in a large text element. The primary implementation uses `d3.csv` with promises, while commented-out alternatives show `fetch` with `async`/`await` and `d3.csvParse`, plus a nested promise structure illustrating the "pyramid of doom." The data comes from a GitHub gist hosted CSV file.

AI-generated description
MIT Licensed

Similar vizzes