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
Hhunianhang
Last edited Nov 16, 2022
Created on Nov 16, 2022

This example visualizes CSS named colors as a radial burst of colored wedges, with each wedge representing one color from the dataset. The code loads color data from a CSV file using D3’s `csv` utility, then React renders an SVG. Each wedge’s path is generated by D3’s `arc` function, with start and end angles computed from the data index. The React component uses `useState` and `useEffect` to fetch and store the data, while D3 v5 and React 16.9 handle the rendering.

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