Skip to main content
100%

Loading Data in React

✓ Published0🌍 Public
JJaewoo Chung
Last edited Dec 30, 2021
Created on Dec 30, 2021
Forked from Mouse follower

This example demonstrates how to load and parse CSV data in a React application. It fetches the `cssNamedColors` dataset from a GitHub gist using D3's `csv` function, storing the result in React state with the `useState` hook. The app initially renders a simple message showing the raw data object, but does not yet visualize it—it serves as a foundation for integrating D3 data loading into React's component lifecycle. The page uses React 16.9 and D3 v5, rendering to the DOM without any SVG charts yet.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes