Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

My First Chart

Public visualization

Viewing a saved revision (read-only)

f028986b8f914c6387dff3082cfd21bc

My First Chart

0 stars0🌍 Public
Ggckirchoff
Last edited Dec 18, 2022
Created on Dec 18, 2022

This example displays a horizontal bar chart of 2019 greenhouse gas emissions for the 11 largest GDP countries, with populations represented in MtCO₂e. Rectangles are drawn in SVG using D3 v7’s `scaleBand` and `scaleLinear`, with axes generated by `axisLeft` and `axisBottom`. A custom tooltip appears on mouseover, showing each country’s emission value. The code includes a static placeholder dataset, while the actual CSV loading and rendering logic remains commented out, alongside an unused rectangle animation group.

AI-generated description