Skip to main content
100%

Untitled

✓ Published0🌍 Public
Pp189
Last edited Apr 2, 2020
Created on Apr 2, 2020
Forked from Untitled

This interactive stacked bar chart displays the distribution of three categories across U.S. states for a selected year, with a dropdown menu to switch between years. The visualization uses D3.js v5’s `d3.csv` to load data, `d3.scaleBand` and `d3.scaleLinear` for axes, and `d3.stack()` to compute stacked segments. Animated transitions (via `transition().duration()`) smoothly update bar heights and axis labels. Total values for each state are shown above the bars. The SVG rendering includes axis groups and colored layers, with the year selector populated from the dataset.

AI-generated description

Stacked bar chart

MIT Licensed

Similar vizzes