Fork 2
✓ Published0🌍 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 descriptionMIT Licensed