🌍 Public
Viewing a saved revision (read-only)
e7633e6dba5040bebbf57c08f35ad2f8
Loading and Parsing CSV - Colors
This example demonstrates how to load and parse a CSV file using D3 v7, displaying summary statistics about the dataset. It fetches a remote CSV containing named CSS colors, parses it with `d3.csv`, and shows the file size in kilobytes, the number of rows, and the number of columns. The text is rendered in a large `<pre>` element using the Fetch API’s `response.text()` method. The code relies on `d3.csv`, `d3.csvFormat`, and the built-in `fetch` function for data retrieval.
AI-generated descriptionA program that loads and parses some CSV data.