Fork of Interactive Visualization (Brush) - Earthquake Data
This visualization combines a bar plot, world map, and scatter plot to explore earthquake data. The bar plot shows total deaths by region, the map displays earthquake locations with circle radius representing Richter scale magnitude, and the scatter plot correlates year with Richter magnitude and death counts. The implementation uses D3 v7 with d3.geoPath for map projection, d3.scaleBand and d3.scaleLinear for axes, and includes interactive brushing, tooltips via mouseover events, and a legend. Data comes from a CSV file referenced in the code.
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.