Skip to main content
100%

Loading and Parsing CSV - Colors

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

MIT Licensed

Similar vizzes