Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

a9bb2e50e97f4124ba86aa371147b049

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
SSkye Chen
Last edited Jul 11, 2021
Created on Jul 11, 2021

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 description