Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Basic Scatter Plot with React & D3 Emissions

Public visualization

Fork of Basic Scatter Plot with React & D3 Emissions

0 stars0🌍 Public
BBrian Hulbert
Last edited Sep 10, 2025
Created on Sep 8, 2025

This example uses a React app to render a basic scatter plot of CO2 emissions over time. The chart displays data points for various countries and regions from 1960 onward, sourced from a CSV file. The visualization is created using D3.js version 7, with the `select`, `csv`, `scaleLinear`, and `extent` APIs. A React `useEffect` hook loads the data and calls a custom `viz` function to render circles, mapping the year to the x-axis and emission value to the y-axis.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed