Skip to main content
100%

Fork of Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
CCecilia831
Last edited Jun 5, 2021
Created on Jun 4, 2021

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 description
MIT Licensed

Similar vizzes