Skip to main content
100%

War Length vs Deaths Scatterplot

✓ Published0🌍 Public
MMatthew Bruffey
Last edited Jul 10, 2023
Created on Jul 8, 2023
Forked from D3 Scatterplot

This scatterplot visualizes the relationship between war duration in years and the number of battle deaths, excluding WWI and WWII to avoid scale distortion. Each circle represents a conflict, with hover tooltips revealing the war’s name, duration, and death toll. Built with D3.js, it uses `scaleLinear` for axes, `csv` for data loading from Curran’s Repository, and SVG rendering. The chart includes labeled axes, a title, and custom tooltip styling via CSS.

AI-generated description

A basic visualization of the correlation between the duration of a war and the number of deaths in battle using HTML, CSS and JavaScript.

WWI and WWII are excluded because their total deaths so far exceed all other wars that the scale becomes entirely unreadable for a majority of the other wars.

Data set obtained from Curran's Repository.

MIT Licensed

Similar vizzes