Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
Kkmuddana@gitam.in
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from D3 Starter

This pie chart visualizes the proportional breakdown of a CSV dataset by category, using Value1 as the numeric weight for each slice. Built with D3 v7, it renders as an SVG with slices colored via a categorical color scheme, and each slice is labeled with its category name. The chart includes a legend that maps colors back to categories, generated from the same data. The code constructs the pie using `d3.pie()` and draws arcs with `d3.arc()`, calculating slice paths and centroids for label placement.

AI-generated description
MIT Licensed

Similar vizzes