🌍 Public
Viewing a saved revision (read-only)
13da115b4b024324bdf8296559fa67eb
Loading and Parsing CSV data
This example demonstrates how to load and parse CSV data using D3 v7, displaying dataset statistics including row count, column count, and file size in kilobytes. The code uses `d3.csv()` to fetch and parse the remote CSV file from a GitHub gist containing CSS named colors, then computes the metrics using `data.length`, `data.columns`, and `d3.csvFormat()`. The results appear in a large monospace `<pre>` element. A commented-out alternative shows the same workflow using the Fetch API with `async/await` and `d3.csvParse()`.
AI-generated descriptionA bare minimum HTML page.