Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final - Earthquake Scatter Plot

Public visualization

Viewing a saved revision (read-only)

ac14254a71624b5d884a1704934d3de2

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