Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV data

Public visualization

Loading and Parsing CSV data

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed