Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Basic Scatter Plot with React & D3

Public visualization

Viewing a saved revision (read-only)

e49ca404d4734bbfa46851145951091c

Fork of Basic Scatter Plot with React & D3

0 stars0🌍 Public
Sskasliwal@wpi.edu
Last edited Oct 4, 2025
Created on Oct 4, 2025

This example plots global economic growth using a scatter plot of GDP per capita against time. Each small blue circle represents a single country's GDP value for a given year. The visualization uses a logarithmic y-axis scale to handle the wide range of data values, revealing trends across nations from 1800 to 2100. The code combines React's state management with D3.js v7, using `scaleLog` for the axis, `scaleLinear` for time, and `csvParse` to transform the loaded Gapminder dataset into a long format for plotting.

AI-generated description