Skip to main content
100%

Grouped Bar Chart Toggle Series, update for d3v5

✓ Published0🌍 Public
663anp3ca
Last edited Oct 9, 2018
Created on Oct 9, 2018

This example presents a grouped bar chart of U.S. state populations by age bracket, using data from a CSV file. It uses d3.v5’s `d3.csv`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal` to render SVG rectangles. Clicking a legend item toggles that series on or off, filtering the displayed bars and updating the x and y scales with a 500-millisecond transition on the axis.

AI-generated description

forked from <a href='http://bl.ocks.org/flacoman91/'>flacoman91</a>'s block: <a href='http://bl.ocks.org/flacoman91/050cb74d729c97ae75139673222269f7'>Grouped Bar Chart Toggle Series, update for d3v5</a>

mit Licensed

Similar vizzes