Skip to main content
100%

Earthquake Bar Plot

✓ Published1🌍 Public
JJunying Li
Last edited Sep 27, 2021
Created on Sep 20, 2021
Forked from D3 Starter

This bar plot displays earthquake fatalities across different regions in the 19th century, with the x-axis showing the region and the y-axis recording deaths. The chart reveals that over 700,000 people died in Peru due to earthquakes during this period. The visualization uses d3.v7’s scaleBand and scaleLinear to map the region and death values, rendering rectangles as bars in SVG. Data is loaded asynchronously via d3.csv from a GitHub-hosted earthquakes.csv file, with rotated x-axis labels for readability.

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.


X-axis: region that earthquake occured.

Y-axis: Deaths in earthquake.

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