Skip to main content
100%

Fetch and csv

✓ Published0🌍 Public
VValentin Kebat
Last edited Sep 8, 2021
Created on Sep 8, 2021
Forked from HTML Starter

This example demonstrates fetching a CSV file over the network and parsing it with D3. The page uses the Fetch API to request a gist containing CSS named colors, then parses the raw text using `d3.csvParse`. It logs the number of rows, columns, file size in kilobytes, and the full parsed data array to the browser console. The HTML includes minimal styling with a large font size, and the script relies on the D3 v7 library loaded from a CDN.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes