Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV - Colors

Public visualization

Loading and Parsing CSV - Colors

0 stars0🌍 Public
Llefat92
Last edited Aug 13, 2023
Created on Aug 12, 2023
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v7, displaying summary statistics about the dataset. It fetches a remote CSV containing named CSS colors, parses it with `d3.csv`, and shows the file size in kilobytes, the number of rows, and the number of columns. The text is rendered in a large `<pre>` element using the Fetch API’s `response.text()` method. The code relies on `d3.csv`, `d3.csvFormat`, and the built-in `fetch` function for data retrieval.

AI-generated description

A program that loads and parses some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed