🌍 Public
Viewing a saved revision (read-only)
0a438ee8263a4f758012b60f67a27ce2
load data with React and D3
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.