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)

86b760d84ef14a56b2e8bd34f78ae1ea

Loading and Parsing CSV Data

0 stars0🌍 Public
Nninarosenberg
Last edited Jul 13, 2021
Created on Jul 13, 2021
Forked from HTML Starter

This example demonstrates the first step of handling external data in a web application: fetching raw CSV content and printing it to the browser console. The program defines an asynchronous helper function, `fetchText`, which uses the standard `fetch` API to retrieve a text file from a remote URL and return its contents as a string. It then calls this function on a CSV file containing CSS named colors, hosted as a GitHub gist, and logs the resulting text. The visualization shows only the raw, unparsed data output, with no formatting or chart rendered.

AI-generated description

A program that loads and parses some CSV data.