Skip to main content
100%

dv.13 - Loading and Parsing CSV Data

✓ Published0🌍 Public
Zzach b.
Last edited Mar 24, 2021
Created on Apr 7, 2020
Forked from Hello HTML

This example demonstrates how to fetch and display raw CSV data as plain text in a web page. It uses the Fetch API to retrieve a CSS named colors dataset from a GitHub gist, then inserts the response text into a `<pre>` element. The code defines an asynchronous `fetchText` helper that reads the response body as text, and handles the promise chain by assigning the resulting string to the page’s root element, showing the comma-separated values without any parsing or visualization.

AI-generated description

A program that loads and parses some CSV data.

--
Datavis 2020 #13

MIT Licensed

Similar vizzes