Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
NNikhilkuyya
Last edited Feb 12, 2018
Created on Feb 12, 2018

A stacked bar chart uses the D3 stack layout to visualize monthly mortality causes in the Crimean War from April 1854 to March 1856. The SVG rendering shows layers for wounds, other, and disease, with a categorical color scale and ordinal x-axis for dates. D3’s `d3.layout.stack`, `d3.svg.axis`, and `d3.time.format` handle the data transformation and axes, while the data loads from a TSV file.

AI-generated description

A recreation of a Protovis example in D3 using the stack layout.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1134768'>Stacked Bar Chart</a>

forked from <a href='http://bl.ocks.org/sivartravis/'>sivartravis</a>'s block: <a href='http://bl.ocks.org/sivartravis/9570c31758f269538746'>Stacked Bar Chart</a>

mit Licensed

Similar vizzes