Skip to main content
100%

Grouped Bar Chart Toggle Series

✓ Published0🌍 Public
Aandrew-reid
Last edited Nov 4, 2017
Created on Oct 17, 2017

A grouped bar chart displays population counts by age range for six U.S. states, with each state’s bars color-coded by age group. Clicking a legend item toggles that age series on or off, triggering animated transitions that collapse the hidden bars to zero width and re-space the remaining bars using updated d3.scaleBand domains. The visualization uses D3 v4 with SVG rendering, d3.csv for data loading, d3.axisLeft for the y-axis, and transition methods to animate bar resizing and axis updates.

AI-generated description

Similar vizzes