Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
AAnthony Ynami
Last edited Feb 18, 2021
Created on Feb 18, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using the Fetch API and D3.js. It fetches a remote CSV containing CSS named colors, parses the text into an array of objects with `d3.csvParse`, and then displays summary statistics about the dataset. The output shows the raw text size in kilobytes, the number of rows, and the number of columns in a large `<pre>` element. The code uses an `async/await` fetch helper to avoid nested promise callbacks.

AI-generated description

A Program that loads and parses some CSV data

MIT Licensed

Similar vizzes