Fork of Rendering Data with React & D3
✓ Published0🌍 Public
A React application visualizes CSS named colors as a radial burst diagram, where each color occupies an equal slice of a pie chart. The code loads the dataset via `d3.csv` from a gist URL, then uses `d3.pie` and `d3.arc` to compute the slice geometry. React renders each slice as an SVG `<path>` element, with the fill set to the color’s hexadecimal RGB value from the data. The visualization uses a 960×500 viewport, centers the pie at its midpoint, and shows a loading state until the data arrives.
AI-generated descriptionA 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