Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Rendering Data with React & D3

0 stars0🌍 Public
Iilincaion
Last edited Dec 12, 2020
Created on Dec 12, 2020

A radial burst of CSS named colors, loaded from a CSV dataset, fills the screen as a circular pie chart. The visualization loads the data with `d3.csv`, computes the pie layout with `d3.pie`, and renders each slice as a React `<path>` element styled with the color’s RGB hex value. Using React's `useState` and `useEffect` hooks, the component transitions from a loading state to the final SVG, leveraging `d3.arc` for geometry.

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!

Comments

Sign in to join the discussion.

MIT Licensed