Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CO2 vs Population Scatter Plot

Public visualization

Viewing a saved revision (read-only)

f87fdf13433a4030a7824e8198848a34

CO2 vs Population Scatter Plot

0 stars0🌍 Public
Ssrisailapu.rc@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025
Forked from D3 Starter

This interactive scatter plot displays the relationship between population and CO2 emissions for various countries over time, with a year slider controlling which time slice is visible. Each country is represented as a circle, sized by CO2 per capita and colored by country, with a tooltip showing precise values on hover. The visualization uses D3 v7 with `d3.csv` to load data, `d3.scaleLinear` and `d3.scaleSqrt` for axes and sizing, and `d3.axisBottom`/`d3.axisLeft` for chart axes. SVG rendering places circles, axes, and a country legend, while the slider input triggers a complete redraw of the chart elements for each selected year.

AI-generated description