🌍 Public
Viewing a saved revision (read-only)
1ab4384b7b0c476dab2b33d954aab902
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.