Skip to main content
100%

Grouped Bar Chart with Crossfilter

✓ Published0🌍 Public
TTJPepping
Last edited Mar 12, 2018
Created on Mar 12, 2018

This grouped bar chart displays population counts by age metric (Under 5 Years, 5 to 13 Years, 14 to 17 Years) across years 2011–2016, using a CSV dataset. The visualization is built with D3 version 3.5.5 and crossfilter 1.3.12. It uses d3.csv for parsing, d3.scale.ordinal for x-position and color encoding, d3.scale.linear for y-position, d3.svg.axis for axes, and d3.nest to group data for rendering as grouped SVG bars. A legend identifies each age metric by color.

AI-generated description

This is a fork of mbostock's grouped bar chart example, to demonstrate how to use crossfilter to produce the same result.

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

forked from <a href='http://bl.ocks.org/danroberts/'>danroberts</a>'s block: <a href='http://bl.ocks.org/danroberts/cc6f3159f49fed6f6a8d'>Grouped Bar Chart with Crossfilter</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/2212bccc2ac22e270f8afb172aa957f9'>Grouped Bar Chart with Crossfilter</a>

mit Licensed

Similar vizzes