Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

23e93e9f20e145c2bac0478b7db1961a

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ttnk-dev
Last edited Jun 21, 2021
Created on Jun 21, 2021

This example displays summary statistics from a CSV file containing CSS Named Colors, showing the file size in kilobytes, the number of rows, and the number of columns in a large monospaced text block. The code loads the remote CSV using `d3.csv` and processes the parsed data with `d3.csvFormat` and the `data.length` and `data.columns` properties. Alternate commented approaches demonstrate fetching the raw text with the Fetch API and parsing it via `d3.csvParse`, as well as an older promise-chain pattern.

AI-generated description