Skip to main content
100%

Fork of Interactive Visualization (Brush) - Earthquake Data

✓ Published0🌍 Public
AAbhishek Singh
Last edited Feb 12, 2022
Created on Feb 12, 2022

This visualization presents earthquake data through three linked views: a bar plot of regional death tolls, a world map plotting earthquake locations with circle size encoding Richter magnitude, and a scatter plot relating year, magnitude, and deaths. A brush selection on the scatter plot filters the other views, while map tooltips display location names and a legend explains magnitude scaling. The code uses d3.v7 with `d3.geoMercator` projection, `d3.geoPath` for map rendering, and `d3.scaleBand`/`d3.scaleLinear` for chart axes. Data comes from a GitHub-hosted world GeoJSON and earthquake CSV.

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