Skip to main content
100%

Visualizing Data with React & D3

✓ Published1🌍 Public
TTaeyoung Ahn
Last edited Aug 24, 2021
Created on Aug 24, 2021

This example displays the CSS named color palette as a full-screen stack of horizontal color bands, one per row. It loads a CSV of color names and hex values using D3’s `d3.csv`, stores the result in React state via `useState` and `useEffect`, and renders each row as a `div` with a background color set from the `RGB hex value` field. React 16.9 manages the conditional loading state, while D3 v7 handles the data fetching.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to render the data.

MIT Licensed

Similar vizzes