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)

53c5d657f01a4d4da252b6460896d4dc

Loading and parsing CSV data

0 stars0🌍 Public
YYasmina Adimy
Last edited Oct 21, 2022
Created on Oct 21, 2022
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v7, displaying the dataset’s row count, column count, and file size in a large preformatted text block. The code fetches a CSV of CSS named colors from a GitHub gist and uses `d3.csv` to asynchronously parse the data, then computes metrics with `data.length`, `data.columns`, and `d3.csvFormat`. A commented alternative shows the same process using `fetch` and `d3.csvParse`.

AI-generated description

A program that loads and parses some CSV data.