Pie Chart
✓ Published0🌍 Public
This pie chart displays the count of students in each major at UNT, with a legend identifying each major and its corresponding value. It is built with D3 v5, loading data from a CSV file via `d3.csv`, and renders the visualization using SVG. The pie chart is constructed with `d3.pie` and `d3.arc` to generate the segments, while `d3.scaleOrdinal` assigns colors to the sections. The chart includes labels showing formatted values (e.g., "50K") and a legend with colored squares and text labels for each major.
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