Skip to main content
100%

Rendering Data with React & D3

✓ Published1🌍 Public
Yyejichun@naver.com
Last edited Sep 10, 2022
Created on Sep 10, 2022

A radial burst of CSS named colors, each rendered as a pie slice of equal size, fills the SVG canvas. The visualization loads color data from a CSV file using D3's `csv` utility, then computes slice angles with `pie().value(1)`. React manages the loading state and renders each slice as an SVG `path` element, with the fill color taken directly from the `RGB hex value` field. The code combines React's `useState` and `useEffect` hooks with D3's `arc` and `pie` functions to produce the final chart.

AI-generated description

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

MIT Licensed

Similar vizzes