Skip to main content
100%

react pie chart

✓ Published2🌍 Public
MMalcolm Mead
Last edited Jan 18, 2022
Created on Jan 18, 2022

This visualization displays a full-screen pie chart that assigns each CSS named color an equal slice, arranged around a bright yellow circle with a black outline. Built with React and D3 v7, the chart loads data from a CSV file of CSS color names and uses the `pie()` layout generator alongside the `arc()` generator to compute slice angles and paths. Each slice is filled with its corresponding CSS color hex value, with all slices rendered as SVG paths within a React component using state and effects.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes