Skip to main content
100%

Loading data with Fetch

✓ Published1🌍 Public
Rrvdv
Last edited Dec 21, 2021
Created on Dec 21, 2021
Forked from HTML Starter

This example demonstrates how to load external data using the Fetch API and parse it with D3’s `d3.csvParse`. It fetches the Anscombe tidy dataset from a GitHub gist, then displays the file size in kilobytes, row count, and column count in large text. The code defines an async `fetchText` helper to retrieve the raw CSV and uses a promise chain to update the page’s content. The visualization is minimal, focusing on data-loading mechanics rather than graphical representation, with styling applied via a `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes