Skip to main content
100%

PieChart Fork

✓ Published0🌍 Public
VVijay Sheru
Last edited Apr 19, 2024
Created on Apr 19, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes