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)

f97790e50d714abfb935eccd59cce29d

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
PPietro Pollo
Last edited Apr 28, 2023
Created on Apr 28, 2023

This example demonstrates how to load and parse CSV data in a web browser. It fetches a dataset of CSS named colors from a GitHub Gist and displays summary statistics—file size in kilobytes, row count, and column count—in large text. The primary implementation uses d3.csv to fetch and parse the data asynchronously, while commented-out alternatives show the same task using fetch with async/await and d3.csvParse, including a nested promise “pyramid of doom” pattern. The visualization itself is minimal, focusing purely on the data-loading workflow with d3.v5 in a React-free HTML page.

AI-generated description