Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 7

Public visualization

Viewing a saved revision (read-only)

213b4b5ef8ed4da4984899c704716643

Assignment 7

0 stars1🌍 Public
Ppezguy97@gmail.com
Last edited Oct 30, 2026
Created on Oct 30, 2026
Forked from HTML Starter

Three interactive buttons reorder a bar chart of 2023 data by alphabetical country name, numeric value of CO₂ per capita, or a derived ratio of CO₂ per capita to GDP. The reusable bar chart function, implemented with D3 v7, uses `d3.scaleBand` and `d3.scaleLinear` for positioning, while SVG renders rotated axis labels and bars. Data loads from a GitHub CSV containing country-level energy, economic, and emissions metrics, and the buttons trigger redraws through chainable getter/setter methods.

AI-generated description