Activity-8.2
✓ Published0🌍 Public
A donut chart displays the count of students from each major at UNT, with each slice labeled with its value in thousands and a corresponding color-coded legend. The visualization loads CSV data from a GitHub gist using D3's `csv` method. It constructs the pie layout with `d3.pie` and `d3.arc`, maps colors via `d3.scaleOrdinal`, and renders SVG paths and text elements, with legends positioned manually.
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