Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final - Earthquake Scatter Plot

Public visualization

Viewing a saved revision (read-only)

7a5bfebee92a452e93fe83aff146e4d8

Final - Earthquake Scatter Plot

0 stars0🌍 Public
Llingjizhu@gmail.com
Last edited Apr 24, 2024
Created on Apr 17, 2024

This scatter plot visualizes earthquakes from the past week using USGS GeoJSON data, showing the relationship between earthquake depth and magnitude on a time-based x-axis. The circles are colored by depth category (shallow, intermediate, deep), and hovering over the legend highlights one category while dimming the others. Built with D3 v7, it uses `scaleTime`, `scaleLinear`, `scaleOrdinal`, and `axisLeft`/`axisBottom` to render axes and a custom color legend, with a `ResizeObserver` for responsiveness. The plot reveals that shallow earthquakes span the widest magnitude range, while deep earthquakes all exceed M4.0.

AI-generated description