PieChart Fork
✓ Published0🌍 Public
This pie chart visualizes income distribution (above or below $50K) using data from the UCI Adult dataset, loaded via D3’s `d3.csv` from a remote GitHub repository. It computes category counts with `d3.nest()` and `rollup`, then renders SVG arcs using `d3.pie()` and `d3.arc()`. A legend maps label colors via `d3.scaleOrdinal`, while the chart groups slices in a centered `<g>` element.
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