Skip to main content
100%

activity7.1_q1

✓ Published0🌍 Public
Mmohanalaharic@gmail.com
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from Hello VizHub

This pie chart shows the 2023 share of US electricity generation by energy source, using a color-coded slice for each source with percentage labels and a legend. Built with D3 v7, it loads data from a provided CSV and uses `d3.pie()` and `d3.arc()` to compute slice geometries, rendered as SVG paths with hover tooltips. A total of 560×540 pixels accommodates the pie on the left and a legend on the right, with decorative axis titles for context. The chart is responsive via a `viewBox` and uses `d3.scaleOrdinal` for categorical colors.

AI-generated description
MIT Licensed

Similar vizzes