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 stars1🌍 Public
HHamza Abdirashid
Last edited Jul 2, 2021
Created on Jul 2, 2021
Forked from HTML Starter

This example demonstrates fetching and logging the raw text of a CSV file containing CSS named colors. The code uses the `fetch` API to request the remote CSV from a GitHub gist, then chains a `.then()` call to extract the response as text with `response.text()`. It illustrates both the current async/await pattern and the older promise-based approach in commented code, with the result written to the browser console.

AI-generated description

This is going to demonstrate how to parse csv data with async/await and promises

Comments

Sign in to join the discussion.

MIT Licensed