🌍 Public
Viewing a saved revision (read-only)
a5b4dfc09dd243a19bc70ee3992e31f8
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v6, displaying the file size, row count, and column count of a dataset containing CSS named colors. The program fetches the CSV from a GitHub gist via `d3.csv`, then reports the parsed data’s dimensions using `d3.csvFormat` and the resulting array’s properties. A large monospaced `<pre>` element renders the summary, while the code also includes commented alternatives using `fetch` and `d3.csvParse` for manual text handling.
AI-generated descriptionA program that loads and parses some CSV data