Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 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.

MIT Licensed

Similar vizzes