Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ACTIVITY 6 QUESTION 6

Public visualization

Viewing a saved revision (read-only)

90057070eb4d4fb48e5a3d1465b3c7b2

ACTIVITY 6 QUESTION 6

0 stars0🌍 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