Viz - Bar - fold unfold
✓ Published0🌍 Public
NNPashaP
Last edited Jan 7, 2018
Created on Jan 7, 2018
This example shows animated bar charts that fold and unfold as their values alternate between random numbers and zero. Ten bars are rendered in SVG, and every 1.25 seconds a `setInterval` callback maps each bar’s value to either zero or a new random number. The `viz.bar()` API from vizjs.org handles the bar geometry, while a `scaleLinear` maps values to pixel heights. The `bar.data(...).transition()` method animates the height changes smoothly.
AI-generated descriptiongpl-3.0 Licensed