🌍 Public
Viewing a saved revision (read-only)
5ae86926be9b4cf6a266caa14bd4e309
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v5. It fetches a dataset of CSS named colors from a GitHub gist and displays summary statistics including file size, row count, and column count in a large text element. The code uses `d3.csv` to retrieve and parse the remote CSV file, then accesses the parsed array’s `length` and `columns` properties. Alternative approaches using `fetch`, `async`/`await`, and `d3.csvParse` are also shown in commented-out sections.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.