🌍 Public
Viewing a saved revision (read-only)
4878fbceb89a486d869c390131cab19f
Fork of Loading and Parsing CSV Data
This example displays basic statistics about the CSS Named Colors CSV dataset, including file size in kilobytes, row count, and column count, rendered as large text in a preformatted HTML element. The code loads the remote CSV using D3 v5’s `d3.csv` method, which returns a promise, then computes the values with `d3.csvFormat` and `data.columns`. Alternative approaches using `fetch`, `async`/`await`, and `d3.csvParse` are commented out, highlighting different asynchronous patterns for data loading.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: