🌍 Public
Viewing a saved revision (read-only)
e66ccce08f2f4fcf9526d48afc5e4268
Load and Parse Csv File
This example demonstrates loading and parsing a CSV file with D3, displaying the dataset’s size in kilobytes, row count, and column count as plain text. It fetches a remote CSV from a GitHub gist using `d3.csv`, which parses the file into an array of objects. The formatted data is measured with `d3.csvFormat`, and the computed metrics are injected into an HTML `<pre>` element via `textContent`. The page uses D3 v5 with a minimal, unstyled body layout.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.