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)

ac0d76dfda27463f890ca241df7203fb

Loading and Parsing CSV Data

0 stars1🌍 Public
Fforcox43
Last edited Sep 1, 2020
Created on Sep 1, 2020

This example demonstrates how to load and parse CSV data in D3.js v6, showing the size, row count, and column count of a CSS Named Colors dataset. It uses `d3.csv` to fetch the remote CSV file and `d3.csvFormat` to compute the data size in kilobytes. The code also includes commented alternatives using `fetch` with `async`/`await` and `d3.csvParse`, illustrating different approaches to asynchronous data loading in D3.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.