Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0🌍 Public
DDmytro Garastovych
Last edited Mar 29, 2021
Created on Mar 29, 2021

A radial burst of CSS named colors, loaded from a CSV file and rendered as an SVG pie chart. React manages the component state and lifecycle, fetching the data with `useEffect` and `useState`, while D3 utilities `csv`, `pie`, and `arc` handle data parsing, angle calculation, and path generation. Each slice is a `<path>` filled with its corresponding hex value, centered in a 960 by 500 viewport. The code uses React 16.9 and D3 v5.

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