Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Bbillmccabeusa@hotmail.com
Last edited Nov 11, 2024
Created on Nov 11, 2024

This example demonstrates how to load and parse CSV data from a remote URL using D3 v5 and the Fetch API. It displays a summary of the dataset—the CSS Named Colors file—showing file size in kilobytes, row count, and column count in large text. The code uses `d3.csv` to fetch and parse the data, then formats it with `d3.csvFormat` to compute the size. It also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse` to highlight different parsing approaches.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed