Skip to main content
100%

load data with React and D3

✓ Published0🌍 Public
AAliciaNiu
Last edited Jul 16, 2021
Created on Jul 16, 2021
Forked from load csv

This example demonstrates loading and parsing external CSV data using D3 within a React starter page. It fetches a remote dataset from a GitHub gist via `d3.csv`, then displays the number of rows and columns in a plain HTML `<pre>` element. The visualization updates the page’s text content asynchronously after the promise resolves. The code uses D3 v7’s `d3.csv` with a promise-based `.then` callback, while the page layout is styled with simple CSS. No explicit React components are used; instead, vanilla JavaScript manipulates the DOM directly.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes