Pie Chart
✓ Published0🌍 Public
A pie chart displays the count of students from each major at UNT, using a dataset of courses loaded from a remote CSV URL. The visualization renders as an SVG with colored slices, value labels, and a legend showing majors and student counts. It uses D3 v5 APIs including `pie`, `arc`, `scaleOrdinal`, and `csv` to compute arc segments, assign colors, and fetch data. The chart is positioned via SVG transforms, with styling applied through CSS.
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