Skip to main content
100%

Fork of Interactive Visualization (Two Menus) - Earthquake Data

✓ Published0🌍 Public
Sspace-captain96
Last edited Jun 10, 2022
Created on Jun 10, 2022

This interactive visualization displays earthquake data from the 20th century using a bar plot and a world map. The bar plot shows total deaths by region, while the map uses circle radius to represent earthquake magnitude on the Richter scale. Users select start and end years from two drop-down menus, which updates both visualizations. The code uses D3 v7 with SVG rendering, including d3.geoMercator projection, d3.scaleLinear and d3.scaleBand scales, and tooltip interactions for the map. Data comes from a GeoJSON world map and an external earthquake dataset.

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