Skip to main content
100%

Loading data with fetch

✓ Published0🌍 Public
Sshencode76
Last edited Jan 2, 2022
Created on Jan 2, 2022
Forked from HTML Starter

This example demonstrates how to load an external CSV dataset using the native JavaScript fetch API. It fetches a namedcolor.csv file from a GitHub gist and logs the raw text response to the browser console, showing the data loading process before any visualization is created. The code uses async/await syntax within a custom fetchText function, with a commented-out alternative using promise chaining. The page itself is a bare HTML document with a simple CSS class and no additional libraries beyond standard web APIs.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes