Skip to main content
100%

Ver04 of Magnitude of Earthquakes over 7 Days

✓ Published0🌍 Public
Llingjizhu@gmail.com
Last edited Feb 13, 2024
Created on Feb 13, 2024

A scatter plot visualizes earthquake magnitude and depth from the past seven days, using time on the x-axis and magnitude on the y-axis. The depth is categorized into three levels—shallow (red), intermediate (blue), and deep (green)—via `d3.scaleOrdinal`. The visualization uses `d3.scaleTime` and `d3.scaleLinear` to map axes, with circles colored by depth and a hover interaction that enlarges points and displays crosshair lines. It leverages the d3 library, integrates responsive container and axis handling, and sources data from the Earthquake Dataset.

AI-generated description

A scatter plot shows both magnitude and depth of the earthquakes happened in the past 7 days.

This plot was integrated with responsive viz container and responsive axes.

Data can be found here: Earthquake Dataset.

The depth of the earthquake is categorized into 3 levels:

  • RED: Shallow: depth < 70km
  • BLUE: Intermediate: 70km <= depth < 300km
  • GREEN: Deep: depth >= 300km
MIT Licensed

Similar vizzes