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
KKarenNg
Last edited Sep 5, 2019
Created on Sep 5, 2019

This example demonstrates how to load and parse CSV data from a remote URL using D3 v5 and the Fetch API. It displays the file size in kilobytes, row count, and column count of the CSS named colors dataset in large text. The primary implementation uses `d3.csv` with a promise, while commented-out alternatives show `fetch` with `async`/`await` and a nested callback approach. The code visually emphasizes the simplicity of modern asynchronous data loading compared to older patterns.

AI-generated description

A program that loads and parses some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed