Skip to main content
Public

Share visualization

Loading preview…

Iterated Earthquake Bar Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Iterated Earthquake Bar Plot

0
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.

Comments

Sign in to join the discussion.

MIT Licensed