Skip to main content
100%

Grouped Bar Chart

✓ Published0🌍 Public
RRoxIv
Last edited Jul 28, 2018
Created on Jul 28, 2018

This grouped bar chart displays population values for seven crime categories across several global regions, with each region’s bars color-coded by category. The chart uses `d3.scaleBand` for both the outer and inner x-axes, `d3.scaleLinear` for the y-axis, and `d3.scaleOrdinal` for color encoding. It loads CSV data via `d3.csv`, computes column keys with `data.columns.slice`, and renders axes with `d3.axisBottom` and `d3.axisLeft`. A reverse-ordered legend maps each category to its colored rectangle.

AI-generated description

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/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3887051'>Grouped Bar Chart</a>

gpl-3.0 Licensed

Similar vizzes