Ver04 of Magnitude of Earthquakes - Added Responsiveness
This interactive scatter plot visualizes earthquakes from the past seven days, showing magnitude over time while color-coding each point by depth category—red for shallow, blue for intermediate, and green for deep quakes. The visualization uses D3 scales and axes to map the data, and implements responsive rendering via `observeResize` and the `axes` helper library, adapting to container size changes. Circles enlarge on mouseover through D3 transitions. The plot fetches data from the publicly available Earthquake Dataset on VizHub.
AI-generated descriptionA 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