Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

2b6d737531b64e35afbf3ae2b99f62be

Loading and Parsing CSV Data

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