Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3 retry

Public visualization

Fork of Rendering Data with React & D3 retry

0 stars1🌍 Public
Aadewole-top
Last edited Jul 17, 2021
Created on Jul 13, 2021

This visualization displays all CSS named colors as a full-screen pie chart rendered with SVG. The code loads color data from a CSV file using `d3.csv`, then applies `d3.pie` and `d3.arc` to compute the slices. React manages the component state, fetching data via `useEffect` and rendering each slice as a `<path>` whose fill is set to the corresponding hex value. The chart uses fixed dimensions of 960×500 pixels and is built with React 16.9, ReactDOM, and D3 v5.

AI-generated description

Named CSS data about CSS named colors Niran Software Solution

Comments

Sign in to join the discussion.

MIT Licensed