Skip to main content
100%

D3 pieChart

✓ Published1🌍 Public
RRahul Gupta
Last edited Mar 5, 2021
Created on Mar 5, 2021

This example displays a circular pie chart of CSS named colors, with each slice representing an equal share and filled using its own RGB hex value from the dataset. Built with React and D3 v6, the app loads CSV data via `d3.csv` and renders SVG paths using `arc()` and `pie()` generators. The chart is centered on a 960×500 SVG canvas, with slivers sized uniformly since `pie().value(1)` assigns a constant value to each entry.

AI-generated description

A progarm that loads in some data using react and D3

MIT Licensed

Similar vizzes