🌍 Public
Viewing a saved revision (read-only)
b5a04a36839b481e9b1d1dabf1cb9c5d
Fork of Loading and Parsing CSV Data
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: