Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Preparing and Loadinng data

Public visualization

Preparing and Loadinng data

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed