Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React and D3

Public visualization

Loading Data with React and D3

0 stars1🌍 Public
JJohn Lewis
Last edited Oct 31, 2021
Created on Oct 31, 2021
Forked from Mouse Follower

A React application loads a CSV file of CSS named colors from a GitHub gist and displays basic statistics about it in a large HTML `<pre>` element. The example shows a loading message before the data arrives, then replaces it with the file size in kilobytes, row count, and column count. The code imports `csv` and `csvFormat` from D3 v7 to fetch and measure the data, while React's `useState` and `useEffect` hooks manage the asynchronous download. Rendering is entirely text-based, with no SVG or visual chart.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed