Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
SSerind Joshua McCue
Last edited Aug 18, 2022
Created on Aug 18, 2022
Forked from HTML Starter

This example demonstrates how to fetch and parse CSV data from a remote URL using D3 v7 and the Fetch API. The page displays a static "Hello HTML!" message, while the main activity occurs in the browser console, where `d3.csvParse` converts the downloaded text into an array of JavaScript objects. The CSV file, sourced from a GitHub gist containing CSS named colors, is retrieved asynchronously via `fetch` and `res.text()`. No visualization is rendered; the focus is solely on the data loading and parsing workflow.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes