🌍 Public
Viewing a saved revision (read-only)
8e18826aea044ada9257620c27e10a96
Final - Earthquake Scatter Plot
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