Skip to main content
100%

Loading data with D3 and React

✓ Published0🌍 Public
Zzenoalive
Last edited Feb 7, 2023
Created on Feb 5, 2023
Forked from D3 with React

This example demonstrates a grid of colored squares, one for each CSS named color, rendered as React divs. It fetches a CSV file of color data from a GitHub gist using D3’s `csv` utility, then stores the parsed rows in React state via `useState` and `useEffect`. The background color of each square is set from the `'RGB hex value'` column. The visualization highlights the integration of D3’s data-loading functions with React’s state management for dynamic rendering.

AI-generated description

A program that loads data using D3 utilities, and uses React state to keep track of the data of css colours.

MIT Licensed

Similar vizzes