Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dataviz 2020_Ep13 - 7. Loading Data with Fetch, Promises, Async, Await

Public visualization

Viewing a saved revision (read-only)

bf73fd19c9e54a88801acb0703e2d3f8

Dataviz 2020_Ep13 - 7. Loading Data with Fetch, Promises, Async, Await

0 stars1🌍 Public
MMinwoo Pak
Last edited Jun 3, 2021
Created on Apr 22, 2021
Forked from HTML Starter

This example demonstrates loading an external CSV file using the Fetch API with modern JavaScript asynchronous patterns. The code defines an `async` function that uses `await` to fetch a remote CSV of named CSS colors and converts the response to text, then logs it to the console. It also includes a commented-out alternative using promise chaining with `fetch().then()`. The visualization itself is minimal, focusing purely on the data-loading mechanics rather than rendering any graphical output.

AI-generated description

Dataviz 2020_Ep13 - 7. Loading Data with Fetch, Promises, Async, Await