Fork of Task8
✓ Published0🌍 Public
This pie chart displays the breakdown of CO2-equivalent emissions by gas type using data from the Our World in Data CO2 dataset. The visualization uses D3.js v7 with the `d3.pie()` layout to generate arc segments and `d3.rollup()` to aggregate emission sums per gas category. Each slice is rendered as an SVG path via the `d3.arc()` generator, with a categorical color scale (`d3.scaleOrdinal` and `d3.schemeSet3`) distinguishing gas types, and text labels positioned using `arcGenerator.centroid()`. A legend is appended to identify each gas category.
AI-generated descriptionMIT Licensed