Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Earthquake Scatter Plot expandable x-scale

Public visualization

Viewing a saved revision (read-only)

4ab4b7617e1f46b5b2e9c82670ce6f57

Earthquake Scatter Plot expandable x-scale

0 stars1🌍 Public
Llingjizhu@gmail.com
Last edited Apr 17, 2024
Created on Apr 10, 2024

This interactive scatter plot visualizes earthquake magnitudes over time, with points colored by depth category (shallow, intermediate, deep) using a D3 ordinal color scale. Users can zoom horizontally via a d3.zoom behavior that rescales the time axis, and hover over the color legend to highlight matching earthquakes. The chart uses d3.scaleTime and d3.scaleLinear for axes, with data loaded from a CSV file containing USGS earthquake records. A brush selection adds black strokes to selected points, though the zoom functionality takes precedence.

AI-generated description