ACTIVITY 6 QUESTION 6
✓ Published0🌍 Public
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 descriptionMIT Licensed