Skip to main content
100%

Grouped bar chart with transition

✓ Published0🌍 Public
RRenonDis
Last edited Feb 2, 2018
Created on Feb 2, 2018

This grouped bar chart displays five series of ten random values each, with bars colored by series and positioned along a shared categorical axis. The chart animates its initial appearance as each bar’s height transitions smoothly from zero to its data value, staggered by index. Built with D3 v4, it uses `d3.scaleBand` for both group and inner-bar positioning, `d3.scaleLinear` for the y-axis, and an SVG `transition` on the `height` attribute to drive the animation. The data are generated procedurally via `Math.random` and rendered as SVG rectangles.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/2f94c1913b81f7fd20c530236934433a'>Grouped bar chart v4</a>

forked from <a href='http://bl.ocks.org/RenonDis/'>RenonDis</a>'s block: <a href='http://bl.ocks.org/RenonDis/c52043df4cf68c2662992ea17889d8a5'>Grouped bar chart v4</a>

mit Licensed

Similar vizzes