🌍 Public
Viewing a saved revision (read-only)
90057070eb4d4fb48e5a3d1465b3c7b2
ACTIVITY 6 QUESTION 6
This interactive scatter plot displays earthquakes from the past week using live USGS GeoJSON data, plotting time on the x-axis against magnitude on the y-axis. Points are colored by depth category (shallow, intermediate, or deep) using a d3.scaleOrdinal with a custom color legend that supports hover highlighting. A d3.brushX interaction allows users to select a time range, which outlines matching earthquake points with a thick black stroke. The visualization uses d3.scaleLinear axes and a ResizeObserver for responsive sizing.
AI-generated description