Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Nnqu9DL
Last edited Mar 2, 2021
Created on Mar 2, 2021
Forked from Hello HTML

This example shows how to load and parse CSV data from a remote URL, then displays a concise summary of the file’s size, row count, and column count in large text. It uses the browser’s `fetch` API within an `async` function to retrieve the raw text, followed by `d3.csvParse` (from D3 v5) to convert that text into structured data objects. The data source is a GitHub Gist containing named colors, and the results are rendered into a `<pre>` element.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes