Skip to main content
100%

Interactive Visualization (Two Menus) - Earthquake Data

✓ Published4🌍 Public
JJunying Li
Last edited Oct 12, 2021
Created on Oct 10, 2021

This interactive visualization presents earthquake data from the 20th century through a bar plot and a world map. Two dropdown menus allow users to filter the data by start and end year, updating both the bar chart of regional death tolls and the map’s earthquake locations. The map uses `d3.geoPath` with a Mercator projection to render country outlines, while circle radii encode the Richter scale magnitude. The bar chart employs `d3.scaleBand` and `d3.scaleLinear` for axes, with tooltips providing country names on map hover. Visualizations render in SVG with smooth transitions.

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