Skip to main content
100%

Loading data using fetch

✓ Published1🌍 Public
RRajaeKrib
Last edited Aug 15, 2021
Created on Aug 15, 2021
Forked from HTML Starter

This example demonstrates how to load external CSV data asynchronously in the browser using the Fetch API. It fetches a raw CSV file of monthly death counts from a GitHub gist, then logs the returned text to the console. The code uses a custom `fetchText` function that awaits the response and extracts plain text via `response.text()`. The visualization is minimal, with no charts or rendering—it focuses solely on the data-loading step using vanilla JavaScript within an HTML page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes