D3 Scatter Plot-Nuclear Explosions
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 descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the (https://gist.github.com/Rochelle-Wu/b3028fadf0adf5cef2cfb2044d0cb209).
This dataset is from Stockholm International Peace Research Institute (https://github.com/data-is-plural/nuclear-explosions/blob/master/documents/sipri-report-original.pdf)
Someone collated the data (https://github.com/rfordatascience/tidytuesday/blob/master/data/2019/2019-08-20/nuclear_explosions.csv)