🌍 Public
Viewing a saved revision (read-only)
4def992785674cc48784fb88e2d85499
Loading and parsing CSV data
This example displays the result of loading a remote CSV file, showing its size in kilobytes, row count, and column count. It uses the D3.js v7 library's `d3.csv` method to fetch and parse the data from a GitHub Gist URL, then formats the summary using `d3.csvFormat`. The output is presented in a large `<pre>` element styled with CSS. An alternative commented-out approach demonstrates fetching text with `fetch` and parsing it via `d3.csvParse`.
AI-generated descriptionA program that loads and parses CSV data.