Skip to main content
100%

Individual to stacked area charts

✓ Published0🌍 Public
AAjayyy
Last edited Jun 17, 2019
Created on Jun 17, 2019

This example animates between individual area charts for local, state, and federal tax rates and a combined stacked area chart, using randomly generated data for 20 years. Built with D3 v4, it relies on `d3.nest`, `d3.stack`, `d3.area`, and `d3.curveMonotoneX` to reshape and render the SVG paths. An animated `stroke-dashoffset` effect draws the area boundaries continuously, while the transition between individual and stacked views highlights how component parts sum to a whole.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/jonsadka/'>jonsadka</a>'s block: <a href='http://bl.ocks.org/jonsadka/07202c6312437c896ac1dc2ba1c6dbd4'>Individual to stacked area charts</a>

forked from <a href='http://bl.ocks.org/Thanaporn-sk/'>Thanaporn-sk</a>'s block: <a href='http://bl.ocks.org/Thanaporn-sk/611fa8b39229b3526a2ba716b86b2708'>Individual to stacked area charts</a>

forked from <a href='http://bl.ocks.org/lorenzopub/'>lorenzopub</a>'s block: <a href='http://bl.ocks.org/lorenzopub/9d030cdfe0f3564fd5d7b9047e440084'>Individual to stacked area charts</a>

mit Licensed

Similar vizzes