Skip to main content
100%

Fork of Green house gas bar chart

✓ Published0🌍 Public
CCharlie Smith
Last edited Sep 3, 2023
Created on Sep 3, 2023

A horizontal bar chart displays 2019 greenhouse gas emissions in MtCO₂e for the top 11 GDP countries, using population values from a CSV as the quantitative variable. The visualization, built with D3 v7, uses `scaleLinear` and `scaleBand` to map data to SVG rectangles, with `axisLeft` and `axisBottom` for axes. Hovering over a bar reveals a tooltip with the exact emission value, while the bar’s fill darkens briefly. The chart includes a title and renders with a clean, margin-based layout.

AI-generated description
MIT Licensed

Similar vizzes