Skip to main content
100%

Untitled

✓ Published0🌍 Public
Rrichad97
Last edited Mar 21, 2020
Created on Mar 21, 2020
Forked from Untitled

A stacked bar chart displays earthquake counts by magnitude range (7.0+, 6–6.9, 5–5.9) for six U.S. states across the years 2017 and 2018. A dropdown menu switches between years, triggering a 750ms transition that updates bar heights, axis scales, and total labels. The visualization uses D3 v5 with `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and ordinal color mapping, rendering SVG elements with animated transitions. Data is loaded from a CSV file via `d3.csv`.

AI-generated description

Stacked bar chart

MIT Licensed

Similar vizzes