🌍 Public
Viewing a saved revision (read-only)
491948e38ab84b4c936ae36de110e2f5
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v7, reporting the file size, row count, and column count for a dataset of CSS named colors. It uses `d3.csv` to fetch and parse the remote CSV file, then displays the summary statistics in a large `<pre>` element by updating its text content. The data originates from a GitHub gist containing named color values, and the code also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`.
AI-generated descriptionLoading and parsing some CSV data