Skip to main content
100%

Fork of loading data w/ react and d3

✓ Published1🌍 Public
SSamuele Greco
Last edited Feb 4, 2022
Created on Feb 4, 2022

This example shows a column of 148 small colored rectangles, each representing a named color from a CSV dataset loaded from a GitHub gist. The visualization uses React with the `useState` and `useEffect` hooks to manage the loading state, while the `d3.csv` function fetches and parses the data. Once loaded, the `data.map` function renders each row as a div whose background color is set from the `RGB hex value` column. The chart displays a loading message until the asynchronous data request completes.

AI-generated description

load data with d3 and use react for visualization

data about named colors

MIT Licensed

Similar vizzes