Skip to main content
100%

Preparing and Loadinng data

✓ Published2🌍 Public
MMarcus Vinicius da Silveira Richa
Last edited Jan 6, 2022
Created on Jan 5, 2022
Forked from HTML Starter

This example demonstrates how to fetch and prepare a CSV dataset for visualization, using the Fetch API with async/await to load a list of CSS named colors from a GitHub Gist. The code shows the modern asynchronous pattern of await fetch() and response.text() to retrieve raw text data, replacing the older nested Promise approach often called the "pyramid of doom." The example logs the data to the console, illustrating a clean template for later parsing and visualization with a library like D3.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes