Skip to main content
100%

ACTIVITY 6 QUESTION 6

✓ Published0🌍 Public
Ppasumarthiraghuram21@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

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
MIT Licensed

Similar vizzes