Fork of Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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:
MIT Licensed