Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data using D3 v5’s `d3.csv` method, displaying summary statistics about the dataset in a large HTML `<pre>` element. The data source is a CSV file containing CSS named colors fetched from a GitHub gist. The code computes the file size in kilobytes, the number of rows, and the number of columns, then updates the page text via `textContent`. An alternative approach using `fetch`, `async/await`, and `d3.csvParse` is included as commented-out code for comparison.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed