Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Earthquake Scatter Plot expandable x-scale

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed