Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
PPhilippe Rigovanov
Last edited Jun 15, 2020
Created on Jun 15, 2020

This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset. It uses d3.csv to fetch the CSS Named Colors data, then reports the file size in kilobytes, the number of rows, and the number of columns. The code includes commented alternatives using fetch, async/await, and d3.csvParse, along with a nested promise example, to illustrate different approaches to handling asynchronous data loading. The final result appears as large text in a pre element.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed