🌍 Public
Viewing a saved revision (read-only)
b686a8ceb1684574a4c1a8a0010a3ee5
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data from a remote URL, then display summary statistics about the dataset. Using D3 v7, it fetches a CSV file of CSS named colors from a GitHub Gist and reports the file size in kilobytes, the number of data rows, and the column count. The code highlights both the primary `d3.csv` method for direct parsing and an alternative approach using the Fetch API with `d3.csvParse`. Results appear in a large `<pre>` element.
AI-generated descriptionA program that loads and parses some CSV data.