🌍 Public
Viewing a saved revision (read-only)
e7d12630c9f04d81b8d42930054a98dc
CSCE 5320 - HW7 - Stacked and Grouped Charts
RRakesh vilasagaram
Last edited Oct 27, 2026
Created on Oct 27, 2026
This interactive bar chart displays per-capita CO₂ emissions for a set of countries during 2023. Users can sort the bars alphabetically, by emissions value, or by a derived renewable-energy attribute. Built with D3 v7, the visualization uses `d3.scaleBand` and `d3.scaleLinear` to map countries and emissions values, and the `d3.axisBottom` and `d3.axisLeft` APIs render rotated and labeled axes. Data comes from a CSV file loaded via a URL, and hovering over a bar highlights it.
AI-generated description