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)

b686a8ceb1684574a4c1a8a0010a3ee5

Loading and Parsing CSV Data

0 stars0🌍 Public
AArookie-2020
Last edited Jul 17, 2021
Created on Jul 16, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL, then display summary statistics about the dataset. Using D3 v7, it fetches a CSV file of CSS named colors from a GitHub Gist and reports the file size in kilobytes, the number of data rows, and the column count. The code highlights both the primary `d3.csv` method for direct parsing and an alternative approach using the Fetch API with `d3.csvParse`. Results appear in a large `<pre>` element.

AI-generated description

A program that loads and parses some CSV data.