Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Earthquakes

Public visualization

Viewing a saved revision (read-only)

eeeebc7c663347f28d70370de9946ecd

Earthquakes

0 stars1🌍 Public
Yyoyo2050
Last edited Sep 29, 2019
Created on Sep 21, 2019
Forked from HTML Starter

This heatmap visualizes earthquake counts across U.S. states from 2010 to 2015, with each cell colored by magnitude category. The view initially filters to the "10 to 99" category, but a dropdown menu lets viewers switch between magnitude ranges. Built with D3 v5, the code uses `d3.scaleBand` for axes, `d3.scaleQuantize` for color mapping, and `d3.nest` for category grouping. SVG rectangles render the data, with tooltips showing exact counts via mouseover and mouseleave events.

AI-generated description