Fork of Fork of Fork of ICE-7 (Part-2) - Pie Chart
✓ Published0🌍 Public
This visualization shows the count of students from each major at UNT as a pie chart, with each slice labeled by its value in thousands and a legend listing the major types alongside their counts. The code loads CSV data via D3’s `d3.csv`, computes slice angles with `d3.pie`, and draws the chart as SVG paths using `d3.arc`. Slice colors come from a `d3.scaleOrdinal` mapping, and labels are positioned with `arcGenerator.centroid`. The legend uses D3 selections to append colored rectangles and text, with counts formatted via `d3.format`.
AI-generated descriptionMIT Licensed