Activity8_Task2_Pie Chart
✓ Published0🌍 Public
This pie chart displays the distribution of student counts across different majors at the University of North Texas, using proportional slices with numeric labels and a color-coded legend. The visualization loads CSV data from a GitHub gist using d3.csv, then applies d3.pie to compute arc angles and d3.arc for SVG path generation. Color mapping uses d3.scaleOrdinal with custom section colors, while d3.format abbreviates student values in thousands. The chart renders as SVG with appended legends, text labels, and styled rectangles indicating each major's name and count.
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