Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the count of students from each major at the University of North Texas, with each slice sized proportionally to enrollment and labeled with the student count in thousands. A legend on the right identifies each major alongside its corresponding value. The visualization loads CSV data from a GitHub gist using `d3.csv` and renders the chart as SVG. It employs `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the slices, colors, and text labels, while using `arc.centroid` to position value labels within each segment.
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