Skip to main content
100%

Fork of Interactive Visualization (Brush) - Earthquake Data

✓ Published0🌍 Public
AAnthony Zornig
Last edited Jan 29, 2022
Created on Jan 29, 2022

This interactive visualization explores earthquake data from the 19th century through three coordinated views: a bar plot of total deaths by region, a world map with circles sized by Richter magnitude, and a scatter plot relating year, magnitude, and death toll. A brush on the scatter plot filters data across all views, while tooltips display country names on the map alongside a legend for magnitude. The code uses D3 v7 APIs including d3.csv, d3.scaleBand, d3.scaleLinear, d3.geoMercator, d3.geoPath, and d3.brushX to render SVG with animations, sourcing data from a GitHub gist.

AI-generated description

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

What's new?

  1. Added scatter plot.
  2. Added brush (select year).
  3. Added legend for world map.
  4. Added tooltips for world map.

Todo:


Bar plot:

X-axis: region that earthquake occured.

Y-axis: Deaths in earthquake.

World map:

Circle: positions where earthquake occured.

Radius: richter of earthquake.

Scatter plot:

X-axis: year.

Y-axis: richter of earthquake.

Radius: deaths 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). The scatter plot shows richter and deaths of earthquakes in different years.

MIT Licensed

Similar vizzes