🌍 Public
Viewing a saved revision (read-only)
2cb85167fbe8444b9c692cf1a665e239
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v7 and the browser’s Fetch API. It displays a text summary of the CSS Named Colors dataset, reporting the total file size in kilobytes, row count, and column count. The code uses `d3.csv()` to fetch and parse the remote CSV, while an `async` function with `await` handles raw text retrieval, and `d3.csvFormat()` measures the dataset’s size.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: