Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

one

Public visualization

Viewing a saved revision (read-only)

3aa547c03bc24f1b9bd58e2ea0544a17

one

0 stars1🌍 Public
Mmuchakurthisahithipatel@gmail.com
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from D3 Starter

This interactive world map visualizes renewable energy usage and CO₂ emissions for 12 major countries in 2024. Users toggle between the two metrics via buttons, triggering smooth color transitions across the geography. The visualization uses d3.geoNaturalEarth1 projection with d3.geoPath to render countries from TopoJSON data, while d3.scaleSequential with interpolateGreens and interpolateReds drives the color encoding. Hover tooltips display detailed country statistics via mouse events. The SVG rendering includes an ocean-colored sphere background and grayscale borders for non-data countries.

AI-generated description