🌍 Public
Viewing a saved revision (read-only)
453df8749cd94764b7521369deafdcd1
Fork of Fork of Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v5 and the Fetch API, displaying a summary of the dataset’s size, row count, and column count on a page. The code uses `d3.csv` with a Promise chain to fetch CSS Named Colors data from a GitHub gist, then computes the file size in kilobytes via `d3.csvFormat`. An alternative commented-out approach uses `async`/`await` with `fetch` and `d3.csvParse` to achieve the same result, highlighting both modern JavaScript patterns for handling asynchronous data loading.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: