Skip to main content
100%

Fork of Visualization (Two Menus) - Earthquake Data

✓ Published0🌍 Public
Oolddb
Last edited May 23, 2023
Created on May 23, 2023

This interactive visualization pairs a bar chart with a world map to explore earthquake deaths and magnitudes. Two dropdown menus filter the data by start and end year, with the bar chart showing total deaths per region and the map displaying earthquake locations scaled by Richter magnitude. The visualization uses D3.js v7 with d3.geonear and d3.geoPath for the map projection, d3.scaleBand and d3.scaleLinear for axes, and animated transitions for tooltips and updates. It loads world geography from a GeoJSON file and earthquake data from a GitHub gist, with a legend added to the map.

AI-generated description

Data: https://gist.github.com/Junying-Li/72ef4641efd6b4abf371f5d9f4267a56

Iterated from one menu version.

What's new?

  1. Changed buttons to two drop down menu.
  2. Update visualizations by different start year and end year.
  3. Added legend for world map.
  4. Scale linear richter(radius of circles on map).
  5. Added tooltips for world map.

Bar plot:

X-axis: region that earthquake occured.

Y-axis: Deaths in earthquake.

World map:

Circle: positions where earthquake occured.

Radius: richter of earthquake.

The bar plot shows the deaths caused by earchquakes in mutiple regions in different period of 19 century. The world map shows the positions where earthquakes occured and how strong they were (richter scale).

MIT Licensed

Similar vizzes