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
Dddrake
Last edited Jul 22, 2021
Created on Jul 22, 2021

This example loads CSS named colors from a CSV file hosted on GitHub and displays a summary of the dataset as text. It uses D3 v5’s `d3.csv` method to fetch and parse the data, then reports the file size in kilobytes, the number of rows, and the number of columns. The code also includes commented-out alternatives using the Fetch API with async/await and `d3.csvParse`, as well as a nested promise “pyramid of doom” pattern for comparison. The rendered output is a simple `<pre>` element with large monospaced text.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed