Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

29c8a8e5c2aa45ad8c7b666d9e7b94d9

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
SSamir Nandardhane
Last edited May 15, 2023
Created on May 15, 2023

This example demonstrates how to load and parse CSV data using D3 v5 and the Fetch API. It displays a summary of the dataset’s size, row count, and column count in a large text block. The code uses `d3.csv` to fetch and parse the file, then `d3.csvFormat` to measure its size, and also includes commented-out alternatives using `fetch` with `async`/`await` and `d3.csvParse`. The data source is a CSV file containing CSS named colors.

AI-generated description