🌍 Public
Viewing a saved revision (read-only)
ace4a13c3a5c4d60933809cc2b7ecdd0
Loading and Parsing CSV data
This example demonstrates the basics of loading remote CSV data in D3.js. It displays a summary message showing the file size in kilobytes, the row count, and the number of columns. The code uses the `fetch` API via `d3.csv` to retrieve a CSV file containing CSS named colors from a GitHub gist, then parses it and formats the summary with `d3.csvFormat` and `d3.csvFormat`'s length property. The result is rendered as text inside a `<pre>` element.
AI-generated descriptionA bare minimum