🌍 Public
Viewing a saved revision (read-only)
4cedf781de084977b1f6f03f9be31591
Pie Chart
This pie chart displays the number of students per major at UNT, with each slice labeled by its count in thousands and a corresponding legend listing majors and values. The visualization uses D3 v5’s `pie` and `arc` generators to compute slice angles and paths, while `scaleOrdinal` maps student counts to a fixed array of colors. Data is loaded asynchronously via `d3.csv` from a GitHub Gist, and the SVG rendering includes centroids for labels and a legend built with appended `rect` and `text` elements.
AI-generated descriptionA demonstration of Pie chart.