Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Jjjacobatandover
Last edited Jul 11, 2021
Created on Jul 10, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL, displaying a summary of the dataset’s size, row count, and column count on the page. It uses the `d3.csv` method to fetch and parse the data, then computes the formatted CSV string’s length in kilobytes via `d3.csvFormat`. The data comes from a GitHub Gist containing CSS color names, and the resulting message is rendered into a `<pre>` element using plain DOM manipulation. A commented alternative shows manual `fetch` with `d3.csvParse`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes