Skip to main content
100%

Loading data with fetch

✓ Published0🌍 Public
Ssxtnxy
Last edited Jan 27, 2022
Created on Dec 22, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file asynchronously in D3, displaying the file size and row count. Using the Fetch API, it retrieves a raw CSV from a GitHub gist, then leverages d3.csv and d3.csvFormat to parse and measure the data. The code also includes commented alternatives using async/await and the d3-fetch module. A large pre element presents the resulting statistics, with the page built on D3 v5 and vanilla JavaScript.

AI-generated description

A program that loads csv

MIT Licensed

Similar vizzes