Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
AAshford
Last edited Dec 13, 2021
Created on Dec 11, 2021
Forked from Hello HTML

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 description

A bare minimum

MIT Licensed

Similar vizzes