🌍 Public
Viewing a saved revision (read-only)
b1028c681cc740c786ea7f6251e44685
Loading and Parsing CSV Data
This example demonstrates a minimal workflow for loading and parsing a CSV file using D3. It fetches a remote dataset of named colors from a GitHub Gist, parses the text with the `d3.csvParse` API, and displays the result in a large `<pre>` element. The visualization shows the number of columns and rows extracted from the data, rendered via DOM text content. The code uses the Fetch API and D3's `csvParse` from D3 v7, providing a compact, practical demonstration of CSV ingestion.
AI-generated descriptionA bare minimum HTML page.