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
Aaniosindustries
Last edited Nov 29, 2021
Created on Nov 29, 2021

This example visualizes CSS named colors as a radial burst, with each color represented by a slice emanating from the center of an SVG canvas. It loads the data from a CSV file using D3’s `csv` utility, then processes it with `pie()` and renders the arcs via `arc()`. React manages the component state and updates the SVG elements when the data arrives, while the `fill` attribute of each path uses the color’s hex value. The visualization uses D3 v5 and React 16.9, with d3’s `pieArc` configured to span the full width.

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