Skip to main content
100%

Untitled

✓ Published2🌍 Public
Aandrewtran1991
Last edited Feb 23, 2020
Created on Feb 22, 2020

A drop-down menu switches between two years of earthquake magnitude data, displaying stacked totals for seven U.S. states across three magnitude bands (7.0+, 6–6.9, 5–5.9) as colored segments. The chart uses D3 v5’s `d3.csv`, `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal`, with SVG rectangles and text labels updated via `transition`. Segments animate smoothly to new heights and totals when the year changes, rendering the raw CSV counts as proportional bars.

AI-generated description

Stacked bar chart

MIT Licensed

Similar vizzes