Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the count of students from each major at UNT, with each slice labeled and color-coded. It loads a CSV dataset from a GitHub gist, processes it with `d3.csv`, and renders the chart using D3’s `pie` and `arc` generators. The visualization includes proportional slice labels, a legend showing major names and student counts, and uses `scaleOrdinal` for color mapping. Slices are positioned with arc centroids, and the chart is drawn as SVG elements.
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