🌍 Public
Viewing a saved revision (read-only)
b37a83f8be51444ca786e333388dd44b
Loading and Parsing CSV Data
This example demonstrates how to load and parse a remote CSV file using D3’s `d3.csv` method, which returns a promise that resolves into an array of objects. The code counts the dataset’s size in kilobytes via `d3.csvFormat`, along with its number of rows and columns, and displays these statistics as large text in a `pre` element. The data originates from a GitHub gist containing named CSS colors. A commented-out alternative shows parsing via the Fetch API and `d3.csvParse`.
AI-generated descriptionA program that loads and parses some CSV data
A bare minimum HTML page.