Skip to main content
100%

Fetching data on web

✓ Published1🌍 Public
NNita
Last edited Apr 9, 2020
Created on Apr 6, 2020
Forked from HTML Starter

This example demonstrates how to fetch and parse CSV data from a remote URL in a web browser. The code uses the `fetch` API to retrieve a plain-text file containing CSS named colors from a GitHub gist, then passes the response text to D3’s `csvParse` function for parsing. The parsed data is logged to the console via `console.log`. The example runs entirely in an HTML page with D3 v5 loaded from a CDN, without any additional framework or rendering to the screen.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes