Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE 7 pie chart Ar

Public visualization

Viewing a saved revision (read-only)

8e3441f63dcc480f9b5b3537640049fe

ICE 7 pie chart Ar

0 stars1🌍 Public
Ccharchana0527@gmail.com
Last edited Oct 26, 2025
Created on Oct 24, 2025

This pie chart visualizes energy consumption by source, displaying six categories (Coal, Natural Gas, Hydro, Nuclear, Solar, and Wind) with their respective percentage contributions. Built with D3.js v7, it renders slices using the `d3.pie` and `d3.arc` APIs, with labels positioned via `labelArc.centroid`. A color-coded legend identifies each source, and the chart is styled with a white background and rounded corners. Data is loaded from a local CSV file containing two columns: Energy_Source and Consumption.

AI-generated description