Skip to main content
100%

transition grouped <-> stacked

✓ Published0🌍 Public
CCtuauden
Last edited Feb 1, 2018
Created on Feb 1, 2018

This example demonstrates the animated transition between stacked and grouped bar charts. Ten random samples are displayed as five series, with the chart type toggling on a click. The visualization uses D3 v4’s `scaleBand` for categorical axes and `scaleLinear` for the y-axis. During transitions, `transition()` with duration and delay functions animates the bars’ positions and heights, reshaping the layout smoothly while maintaining the same underlying data.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes