Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing CSV data

Public visualization

Viewing a saved revision (read-only)

7166822f1e574029b1ec07eb5c49e473

Loading and parsing CSV data

0 stars0🌍 Public
JJacob Potvin
Last edited May 20, 2021
Created on May 20, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data, displaying a summary of the remote file’s contents. It fetches a gist containing CSS named colors, then uses `d3.csvParse` to convert the raw text into an array of objects. The page prints the file size in kilobytes, the number of rows, and the count of columns in a large `<pre>` element. The implementation relies on the Fetch API and D3 v6’s `csvParse`.

AI-generated description

A program that loads and parses CSV data.