Fork of Fork of Interactive Visualization (Brush) - Earthquake Data
This interactive dashboard combines a bar chart, a world map, and a scatter plot to explore earthquake data from 2000 to 2021. The bar chart shows the mean yearly earthquake magnitude, while the world map, built with `d3.geoPath` and a Mercator projection, plots earthquake epicenters with circle radii scaled by Richter magnitude. A linked scatter plot uses `d3.select` to display year against magnitude, with point size representing deaths. The map also includes tooltips on hover, and the data for the bar chart is loaded from a CSV file.
AI-generated descriptionData: https://gist.github.com/Junying-Li/72ef4641efd6b4abf371f5d9f4267a56
What's new?
- Added scatter plot.
- Added brush (select year).
- Added legend for world map.
- 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.