Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data using D3 v5 and native browser APIs. It fetches a dataset of CSS named colors from a GitHub gist and displays the file size in kilobytes, row count, and column count in a large text element. The primary implementation uses `d3.csv` with a promise-based `.then()` callback, while commented-out alternatives show the same task using `fetch`, `async/await`, and `d3.csvParse`. The code also includes a commented "pyramid of doom" example illustrating nested promise callbacks.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed