Skip to main content
100%

Iterated Earthquake Bar Plot

✓ Published0🌍 Public
JJunying Li
Last edited Oct 3, 2021
Created on Oct 3, 2021

This bar plot visualizes total earthquake deaths by region during the 20th century, with bars sorted descending to highlight that Peru exceeds 700,000 fatalities. The visualization aggregates data from a CSV file using d3.csv, sums deaths per region with d3.sum, and renders an SVG with d3.axisBottom and d3.axisLeft for labeled axes. Regions are grouped via array filtering, and a transition animates the Y-axis update.

AI-generated description

Data: https://gist.github.com/Junying-Li/72ef4641efd6b4abf371f5d9f4267a56#file-earthquakes-csv

A bar plot shows the deaths of earthquakes in different countries of 19 Century. Iterated from last week's visualization.

What's new?

  1. Summed deaths from the same region.
  2. Sorted regions by deaths.
  3. Added labels for both X and Y axis.
  4. Transformed X and Y axis to leave more space for labels.

X-axis: region that earthquake occured.

Y-axis: Total deaths caused by earthquake in 1900-1999.

According to this bar plot, we can find that over 700,000 people died in Peru due to earthquake in 19 century.

MIT Licensed

Similar vizzes