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)

1d427abfb72548bea190e29a57b77055

Loading and Parsing CSV data

0 stars0🌍 Public
GGang Chen
Last edited Oct 22, 2021
Created on Oct 22, 2021
Forked from HTML Starter

This example demonstrates loading and parsing a CSV file from a remote URL, then displaying basic metadata about the dataset. It fetches the raw CSV text using the Fetch API and parses it with d3.csvParse from d3.v7, after which it reports the file size in kilobytes, the number of rows, and the number of columns. The data source is a gist containing CSS named colors, and the output appears in a large-font HTML pre element.

AI-generated description

A program that loads and parses some CSV data.