Skip to main content
100%

Loading and Rading CSV data

✓ Published0🌍 Public
JJar-Jar-Blings
Last edited Dec 30, 2022
Created on Dec 30, 2022
Forked from HTML Starter

This example shows a minimal web page that loads a CSV file containing named CSS colors and logs the number of entries to the browser’s console. The page uses the `fetch` API to retrieve the raw CSV text from a GitHub gist URL, then passes the text to d3’s `csvParse` method to convert it into an array of objects. The code relies on the D3.js library (version 7.8.0) loaded from the unpkg CDN, along with standard JavaScript and CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes