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
Bbillmccabeusa@hotmail.com
Last edited Nov 8, 2024
Created on Nov 8, 2024

This example demonstrates how to load and parse CSV data using D3 v5 and asynchronous JavaScript. It fetches a dataset of CSS named colors from a GitHub gist and displays summary statistics, including file size in kilobytes, row count, and column count, in a large text format. The code uses `d3.csv` with promise-based `.then()` handling, as well as commented alternatives using `fetch`, `async`/`await`, and `d3.csvParse`. It also references older callback-based "pyramid of doom" patterns for comparison.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed