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 descriptionData: 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?
- Summed deaths from the same region.
- Sorted regions by deaths.
- Added labels for both X and Y axis.
- 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.
Comments
Sign in to join the discussion.