Skip to main content
100%

Barchart

✓ Published0🌍 Public
NNita
Last edited Nov 10, 2020
Created on Nov 10, 2020
Forked from Barchart

This example demonstrates an animated stacked bar chart that transitions between stacked and grouped layouts. The chart displays five series of pseudorandom, smoothly varying data generated by the `bumps` function, with tooltips revealing precise values for each segment. Users can toggle the layout via radio buttons or an automatic timer that switches every two seconds. Built with D3 v6, the visualization uses `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `transition` with staggered delays to animate the SVG rectangles.

AI-generated description
MIT Licensed

Similar vizzes