🌍 Public
Viewing a saved revision (read-only)
94f05542ea8a43739727f457b962a695
Loading and Parsing CSV Data
This example demonstrates how to load and parse a remote CSV file using D3 v7. It fetches CSS named colors data from a GitHub gist and displays the file size, row count, and column count in a large <pre> element. The code uses `d3.csv()` to retrieve and parse the data, then computes the formatted size with `d3.csvFormat()`, while also showing commented alternatives using `fetch()`, async/await, and `d3.csvParse()` for manual parsing.
AI-generated descriptionA program that loads and parses some CSV data.