Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
WWolfgang
Last edited Mar 16, 2021
Created on Mar 16, 2021
Forked from HTML Starter

This example demonstrates three ways to access and parse remote CSV data with D3 v6. It loads a CSV file of CSS named colors from a GitHub gist and displays its size, row count, and column count in a large text block. The primary path uses `d3.csv` with a promise, while commented alternatives show manual `fetch` with `async`/`await` and `d3.csvParse`. The rendering is plain text in a `pre` element, updated via `textContent` after the data arrives.

AI-generated description

A program to load and parse CSV data

MIT Licensed

Similar vizzes