Skip to main content
100%

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

✓ Published1🌍 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

MIT Licensed

Similar vizzes