Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

4c4350f393aa4d4fa2239a528591dd96

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Bblueyjuice
Last edited Nov 10, 2021
Created on Nov 10, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count in a large text format. It uses D3 v5’s `d3.csv` method with a promise-based `.then()` callback to fetch data from a CSS Named Colors dataset hosted on GitHub Gist. The code also includes commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, as well as a nested “pyramid of doom” fetch pattern, showing different approaches to asynchronous data loading.

AI-generated description