Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
AAnthony Le
Last edited Aug 17, 2024
Created on Aug 17, 2024

This example uses React to render a radial burst of colored arcs, each representing a CSS named color from a CSV dataset loaded via D3’s `csv` utility. The visualization shows all named colors arranged as wedges in a full circle, with each arc filled by the color’s hex value. The code uses `d3.pie` to compute arc angles, `d3.arc` to generate SVG path data, and React’s `useState` and `useEffect` hooks to manage asynchronous data loading. The SVG output is centered on a 960×500 canvas, with a loading message shown until data arrives.

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