Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV data

Public visualization

Viewing a saved revision (read-only)

3ed1215e2498438489be174d2c40500d

Loading and Parsing CSV data

0 stars0🌍 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.