Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Scatter Plot-Nuclear Explosions

Public visualization

Viewing a saved revision (read-only)

f7ab22ecd6a642d0aea99613b7c28232

D3 Scatter Plot-Nuclear Explosions

0 stars0🌍 Public
RRochelle
Last edited Sep 30, 2021
Created on Sep 16, 2021

This scatter plot visualizes global nuclear explosions, mapping detonation year on the x-axis and depth on the y-axis for each test. The dataset, sourced from the Stockholm International Peace Research Institute, is color-coded by country using a fixed palette. The code loads CSV data via `d3.csv`, scales positions with `d3.scaleLinear`, and renders circles as SVG elements. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, while the plot fills the browser window with a responsive layout.

AI-generated description