🌍 Public
Fork of Loading and Parsing CSV Data
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed
Comments
Sign in to join the discussion.