Untitled
✓ Published0🌍 Public
A donut chart displays the distribution of students across university majors, with each slice labeled by its proportion and a legend pairing colors to majors. The visualization loads course data from a CSV file via `d3.csv`, then uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to compute slice geometry and assign categorical colors from a fixed palette. Values are formatted with `d3.format` and rendered as text labels directly on the chart.
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