🌍 Public
Viewing a saved revision (read-only)
e94fe9f1ca984c4885cb1b8f07f4f67c
Fork of Loading and Parsing CSV Data
This example displays summary statistics about the CSS Named Colors dataset, showing the file size in kilobytes, the number of data rows, and the number of columns. It loads the CSV from a GitHub Gist using the `d3.csv` method, which returns a promise, and then formats the result with `d3.csvFormat` and `data.columns`. The code also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse` to demonstrate different parsing strategies, highlighting the modern promise-based workflow.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: