Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes