Activity 8 Question 2
✓ Published0🌍 Public
A pie chart displays the count of students from each major at UNT, with the data loaded from a remote CSV file and rendered as SVG paths using D3 v5. Each slice is colored via `d3.scaleOrdinal`, and labels show values in thousands formatted with `d3.format` through the `.4~g` specifier. Legends, rendered as appended rectangles and text, map majors to their corresponding colors and totals. The chart uses `d3.pie` for arc generation and `d3.arc` for path construction, with a fixed outer radius of 175 pixels.
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.
MIT Licensed