🌍 Public
Viewing a saved revision (read-only)
5e2b84ebe4d3438a9691d05b02c7c853
Parsing CSV Data in D3
This example demonstrates how to load and parse CSV data using D3.js. It fetches a CSS Named Colors dataset from a GitHub gist, then uses `d3.csv` to parse the remote file and `d3.csvFormat` to calculate the data size. The visualization presents the file size in kilobytes, the total number of rows, and the column count as large text on a plain page. It also includes commented alternatives using `fetch` with async/await and a promise-based approach.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.