Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork 2

Public visualization

Viewing a saved revision (read-only)

4fb09d26044148a2aeb59f12f6d142f3

Fork 2

0 stars0🌍 Public
SSeema Shrestha
Last edited Apr 16, 2024
Created on Apr 16, 2024

A scatter plot visualizes the relationship between GDP and CO2 emissions for ten major countries, with each point colored by country and hover interactions revealing exact values via tooltips. The chart uses D3.js v7 to load CSV data from GitHub, parse numeric values, and render SVG circles positioned by linear scales. Axes, tick formatting, and labels are generated with `d3.axisBottom` and `d3.axisLeft`, while a color ordinal scale assigns category colors to countries.

AI-generated description