Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
XXingming Xu
Last edited Jan 22, 2022
Created on Jan 21, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using the Fetch API within an HTML page that includes D3.js v5. The code defines an asynchronous function that fetches a text file containing CSS named colors from a GitHub gist, then logs the raw CSV text to the browser console. The page itself displays a large "Hello HTML!" message styled with CSS, while the JavaScript handles the asynchronous data retrieval using promises and async/await syntax.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes