Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

a27fed2cd32e431ebf329d07f324277a

Loading and Parsing CSV Data

0 stars1🌍 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