Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Scatter Plot

0
AAnusha Pujari
Last edited Sep 28, 2026
Created on Sep 28, 2026

A scatter plot shows the relationship between GDP per capita on the x-axis and CO2 emissions per capita on the y-axis for countries. Circles represent individual countries, colored by region. The visualization uses D3 v7 scales, axes, and SVG circle marks rendered within a React component. Data loads from a CSV file via d3.csv, with numeric columns parsed and categorical region names normalized before plotting.

AI-generated description

HW5 - Marks and Channels

A React + D3 visualization showing the relationship between GDP per capita and CO2 emissions per capita across different countries.

Visualization Features

  • X Axis: GDP per Capita (USD)
  • Y Axis: CO2 per Capita (metric tons)
  • Mark: Circles
  • Size Channel: Population (millions)
  • Color Channel: Region (Asia, Europe, North America, South America, Oceania)

Files

  • App.jsx - Main React component
  • viz.js - Visualization orchestrator
  • renderScatter.js - D3 scatter plot renderer
  • data.js - Sample country data
  • styles.css - Styling
  • index.jsx - React entry point
  • index.html - HTML template

Running

Comments

Sign in to join the discussion.

MIT Licensed