Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing csv data

Public visualization

Loading and parsing csv data

0 stars0🌍 Public
JJulia
Last edited Oct 3, 2021
Created on Sep 2, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data from a remote URL using the JavaScript Fetch API. It shows the raw text content of a CSV file listing CSS named colors, fetched from a GitHub gist. The code defines an asynchronous function that uses `fetch` and `response.text()` to retrieve the file, then logs the resulting text to the browser console. It also illustrates promise chaining and contrasts the `.then()` approach with `async`/`await` syntax.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed