🌍 Public
Viewing a saved revision (read-only)
3b6d19d049b6404b9c9170e65ff6ac45
Activity 8 Q2
A pie chart displays the count of students from each major at UNT, with values labeled in thousands and a color-coded legend. Using D3 v5, the code fetches CSV data from a GitHub gist, applies `d3.pie` and `d3.arc` to generate SVG path segments, and uses `d3.scaleOrdinal` for section colors. Labels are positioned via the arc centroid, and legends annotate majors with corresponding student counts.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.