Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published1🌍 Public
BBetty
Last edited May 5, 2022
Created on May 5, 2022

This visualization displays a radial burst of CSS named colors, where each color is rendered as a slice of a pie chart using React and D3. The data loads from a CSV file of named colors via D3’s `csv` utility, and React’s `useState` and `useEffect` manage the asynchronous fetch and rendering state. The SVG output maps each slice using D3’s `pie` and `arc` functions, with the fill color taken directly from the `RGB hex value` column. The example demonstrates a hybrid approach, combining D3’s data and geometry utilities with React’s declarative component rendering.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes