Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading CSV Data with Async, Await

Public visualization

Loading CSV Data with Async, Await

0 stars1🌍 Public
CCurran Kelleher
Last edited Jul 21, 2020
Created on Jul 21, 2020

This example demonstrates how to load and parse CSV data asynchronously using JavaScript’s `fetch` and `async`/`await` syntax alongside D3 v5’s `d3.csvParse`. It fetches a CSS named colors dataset from a GitHub gist, then displays a summary of the parsed content—kilobytes, row count, and column count—in a large `pre` element. The visualization emphasizes the simplicity of combining modern web APIs with D3’s parsing utilities, making the data-loading process transparent and easy to follow.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed