Skip to main content
100%

Stack-to-split-Stack Transition

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 15, 2017
Created on Mar 15, 2017

This example shows a transition between a single stacked bar chart and a split view with separate stacked bar charts for each assay group. Users toggle between the “together” and “split” modes via radio buttons, triggering animated changes in bar positions and scales. The visualization uses D3 v4’s `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` to render SVG rectangles, with transitions updating the y-axes and grids. Data comes from a JSON file with assay types grouped into three categories and multiple developmental stages.

AI-generated description

Stack-to-split-Stack Transition

Transitions between stacked bar charts and splitting them up into smaller stacked bar charts.

forked from <a href='http://bl.ocks.org/zachmargolis/'>zachmargolis</a>'s block: <a href='http://bl.ocks.org/zachmargolis/9315833'>Stack-to-Split Transition</a>

forked from <a href='http://bl.ocks.org/mashehu/'>mashehu</a>'s block: <a href='http://bl.ocks.org/mashehu/281584920c26e2d617625270b75818a1'>Stack-to-split-Stack Transition with D3 v4</a>

mit Licensed

Similar vizzes