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 displays monthly mortality causes from the Crimean War, showing counts of disease, wounds, and other causes over a 23-month period. The chart uses an ordinal x-axis for dates and a linear y-axis for counts, with each bar subdivided into colored layers using the d3.layout.stack layout. D3 v3 renders the visualization as SVG, with axes generated via d3.svg.axis and categorical colors from d3.scale.category10. Data is loaded from a TSV file and parsed with d3.time.format before being passed through the stacking function.

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>

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

mit Licensed

Similar vizzes