Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity7.1_q1

Public visualization

Viewing a saved revision (read-only)

12eadaac29d6435c8f6b5eede419c247

activity7.1_q1

0 stars0🌍 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