Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ssimontoblad
Last edited Jan 27, 2022
Created on Jan 26, 2022

This example displays summary statistics about a CSV dataset of CSS named colors, including file size in kilobytes, row count, and column count. The visualization is minimal—just text in a large font—but demonstrates three approaches to loading and parsing CSV data using D3 v5 and modern JavaScript. The active code uses `d3.csv` with a promise, while commented-out alternatives show `fetch` with `async`/`await` and `d3.csvParse`, as well as a nested promise structure often called the “pyramid of doom.” The data comes from a GitHub gist of named colors.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed