Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart

Public visualization

Viewing a saved revision (read-only)

c15d38c4615e4bd3b125e822748b253b

Barchart

0 stars0🌍 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