Skip to main content
100%

Loading and parsing CSV data

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

MIT Licensed

Similar vizzes