🌍 Public
Viewing a saved revision (read-only)
647bb619bcae4d428d772759121e2d37
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v5 and the Fetch API. It displays the file size, row count, and column count of a CSS Named Colors dataset from a GitHub gist. The code uses `d3.csv` with a Promise to fetch and parse the data, then formats a summary message with `d3.csvFormat`. An alternative commented-out approach uses `fetch`, `async/await`, and `d3.csvParse`. The result appears as large text in a `<pre>` element.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: