Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
AAndre J Denais
Last edited Sep 4, 2020
Created on Sep 4, 2020
Forked from HTML Starter

This example demonstrates how to load a CSV file over HTTP using D3’s `d3.csv` function. The visualization displays basic statistics from the parsed data—file size in kilobytes, row count, and column count—in a very large `<pre>` element. The CSV data comes from a GitHub gist containing named CSS colors. The code also includes commented-out alternatives using `fetch` with `async`/`await` and the lower-level `d3.csvParse`, highlighting different approaches to asynchronous data loading.

AI-generated description

A program that loads and parses CSV data for funsies

MIT Licensed

Similar vizzes