Skip to main content
100%

Load and Parse CSV

✓ Published0🌍 Public
Rrandom-program
Last edited Nov 24, 2020
Created on Nov 24, 2020
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file from a remote URL, displaying basic metadata about the dataset in a plain HTML page. It fetches the raw text from a GitHub gist containing a list of CSS named colors, then uses D3 v6’s `d3.csvParse` to convert it into an array of objects. The page reports the file size in kilobytes, the row count, and the number of columns, writing these details to a `<pre>` element via `document.getElementByID`. The code relies on the Fetch API’s `fetch` and `response.text` method.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes