Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with Fetch

Public visualization

Viewing a saved revision (read-only)

753f31f1d8f04685a08b57f9763b14f3

Loading Data with Fetch

0 stars1🌍 Public
RRajat Dangat
Last edited Mar 25, 2021
Created on Mar 25, 2021
Forked from HTML Starter

This example demonstrates how to load external data in the browser using the Fetch API. The page displays a static “Hello HTML” message while the script fetches a CSV file of named CSS colors from a GitHub gist, logging the raw text response to the browser’s console. It uses `fetch()` with async/await syntax, assigning the asynchronous function to `fetchText`, and chains a `.then()` callback to log the result. No visualization is rendered; the focus is purely on the data-loading workflow.

AI-generated description

Loading Data with Fetch, Promises, Aync & Await