Skip to main content
100%

D3 arcs

✓ Published1🌍 Public
LLewis Ward
Last edited Jun 27, 2021
Created on Jun 26, 2021

A React app renders a pie chart using D3's `d3.pie` layout and `d3.arc` generator, with each slice filled by a CSS named color from a CSV dataset loaded via `d3.csv`. The graphic displays all named colors as equal-width arcs radiating from a central point, forming a full circular spectrum. The SVG output maps each data row to a path, with the arc's inner radius set to zero and outer radius matching the chart's width. A commented-out rotation effect in the parent component hints at potential interactivity but remains inactive.

AI-generated description

A program that loads in some data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes