Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
FFrederick O'Brien
Last edited Nov 5, 2021
Created on Nov 2, 2021
Forked from HTML Starter

This example demonstrates the basics of loading and parsing CSV data with D3.js. It fetches a remote CSV file containing CSS named colors and displays three summary statistics in a large-text format: the file size in kilobytes, the number of data rows, and the number of columns. Using `d3.csv` with a promise chain, the code accesses the parsed data object and calls `d3.csvFormat` to measure the raw string length. The interface is a simple `<pre>` element updated via `textContent`, with commented alternatives using `fetch` and `d3.csvParse` for comparison.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes