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
Nnatsgeorge.ng@gmail.com
Last edited Jul 2, 2024
Created on Jul 2, 2024

This example demonstrates how to load and parse CSV data using D3 version 5, displaying summary statistics about the CSS Named Colors dataset from a GitHub gist. The visualization shows three key metrics: the file size in kilobytes, the number of rows, and the number of columns, rendered in large text. It utilizes D3’s `d3.csv` method with Promise-based asynchronous loading, alongside commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`. The code also includes a commented "pyramid of doom" example comparing older nested callback patterns with modern approaches.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed