🌍 Public
Viewing a saved revision (read-only)
53b9c07f1dca4de8af0b3400f62ce93b
Loading and Parsing CSV Data
This example demonstrates how to load and summarize a CSV file using D3 v7. It fetches a remote dataset containing CSS named colors from a GitHub gist, then displays the file size, row count, and column count in a large text element. The code uses the Fetch API to retrieve the raw text and D3’s `d3.csv` to parse it into an array of objects, with `d3.csvFormat` measuring the parsed data’s size. The page dynamically renders these statistics into an HTML `<pre>` container.
AI-generated descriptionA program that loads and parses CSV data.