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)

ced127237a3f472bbc38bcdf51b36c5c

Loading and parsing CSV data

0 stars0🌍 Public
TTulioChiodi
Last edited May 13, 2021
Created on May 6, 2021
Forked from HTML Starter

This example demonstrates reading a remote CSV file and summarizing its contents with three key statistics: file size in kilobytes, row count, and column count. It uses D3 v6’s `d3.csv` method to fetch and parse the data, then `d3.csvFormat` to measure the formatted string length. The results are displayed in a large preformatted text block. The data source is a GitHub-hosted CSS named colors table, and commented-out alternatives show `fetch` with `async/await` and `d3.csvParse` for manual parsing.

AI-generated description

A program that loads and parses some CSV data.