Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the count of students from each major at UNT, using a dataset fetched from a GitHub gist via `d3.csv`. The chart uses D3 v5 to compute arc paths with `d3.pie` and `d3.arc`, and maps categorical colors via `d3.scaleOrdinal`. Each slice includes a formatted label showing the student count in thousands, while a legend lists each major with its corresponding color and value. The visualization is rendered as an SVG element, 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