Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
AAleksandra Timofejeva
Last edited Jun 27, 2021
Created on Jun 25, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file from a remote URL using D3.js v7. It fetches a dataset of CSS named colors via `d3.csv`, then displays the file size in kilobytes, the number of rows, and the number of columns in a large HTML `<pre>` element. The visualization relies on `d3.csvFormat` to measure the parsed data’s length, and also includes commented-out alternatives using `fetch` with `d3.csvParse` for comparison.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes