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
KKimberly Nguyen
Last edited Feb 12, 2023
Created on Feb 12, 2023

This example demonstrates how to load and parse CSV data using D3 v5 and native browser APIs. It fetches a dataset of CSS named colors from a GitHub gist and displays the file size in kilobytes, row count, and column count in a large text element. The primary implementation uses `d3.csv` with a promise-based `.then()` callback, while commented-out alternatives show the same task using `fetch`, `async/await`, and `d3.csvParse`. The code also includes a commented "pyramid of doom" example illustrating nested promise callbacks.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed