React Spring Bar Chart – Animated Chart
Bars arrive staggered left to right with velocity carry-over, support negative values and share a springing hover/focus readout. Customize colours, shadows, and Playful, Minimal, or Mono styles. Copy React & Flutter code or install via CLI.
| M | 42 |
|---|---|
| T | 68 |
| W | 55 |
| T | 80 |
| F | 61 |
| S | 90 |
| M | 42 |
|---|---|
| T | 68 |
| W | 55 |
| T | 80 |
| F | 61 |
| S | 90 |
Live vector preview rendered straight from the same 120 Hz spring engine—no heavy GIF compression artifacts, zero layout shift.
Customization playground
Tune outline, fill, accent, text colour, and shadow direction live above. The snippet updates automatically for copy-and-paste.
Customize
<SpringBarChart />Installation
Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.
Install
$ npx kipluo add spring-bar-chartWorking code example
import { SpringBarChart } from "@/components/kipluo/spring-bar-chart";
export function Example() {
return (
<div className="flex items-center justify-center p-8">
<SpringBarChart />
</div>
);
}What Spring Bar Chart does
- Bars arrive staggered left to right with velocity carry-over, support negative values and share a springing hover/focus readout.
- Designed for Dashboards flows with real spring physics that stay smooth even when users interrupt or spam interactions.
- Ships with Playful, Minimal, and Mono themes, synthesized Web Audio feedback (optional via sound={false}), and automatic prefers-reduced-motion support.
Accessibility & sound behavior
Keyboard & screen readers: Arrow Left / Right inspect each bar; a hidden data table carries all values.
Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.
Sound cues: One water drop per bar, pitched by its height and panned left to right across the chart. Disable per instance with sound={false} or globally via setSoundEnabled(false).
API reference
datanumber[]- Values to plot. Changing them animates on springs.
springSpringConfig- How values settle. Default
{ stiffness: 180, damping: 16 }. style"playful" | "minimal" | "mono"- Visual style. Default
"playful". labelstring- Accessible name; a data table is rendered for screen readers.
labelsstring[]- Category labels for each bar. Default
M–S. soundboolean- Plays this component's sounds. The global switch setSoundEnabled(false) silences every component. Default
true.
Framework compatibility
| Platform / Tool | Status | Details |
|---|---|---|
| React 18 & 19 | Full support | Zero peer runtime lock-in beyond @kipluo/core. |
| Next.js App Router | Full support | Ships with 'use client' boundaries; SSR-safe hydration. |
| Vite / Remix / Astro | Full support | Standard ESM TypeScript source files you own. |
| Tailwind CSS v4 & shadcn/ui | Native | Inherits CSS variables and installs via shadcn registry or CLI. |
| Flutter (Dart) | Native package | Matching spring physics, themes, and PCM audio in packages/flutter/kipluo. |
Build it yourself: related tutorials
All tutorials →How to Implement Spring Physics Without a Heavy Animation Library
Write a rock-solid 45-line semi-implicit Euler spring engine in TypeScript with fixed 120 Hz sub-stepping, zero dependencies, and true velocity preservation.
How to Handle Interrupted Animations in React
Learn why rapid clicks, mid-flight drags, and unmounts break React animations—and how velocity-preserving springs and proper cleanup make them unbreakable.
How to Create a Scroll-Driven Animation
Learn modern CSS animation-timeline: scroll() and view() alongside a zero-jank passive scroll + requestAnimationFrame fallback in React.
Related components
- Open component →Donut ProgressFree
A multi-segment meter ring whose cap bulges with velocity and shifts color through warning thresholds.
- Open component →Spring SparklineFree
A compact monotone KPI sparkline that morphs between periods on springs with hover/arrow scrubbing and trend color.
- Open component →Stacked Progress BarFree
Multi-segment bar where shares resize smoothly on springs and hovering a segment highlights its Share readout.
- Open component →Spring Waffle ChartFree
10×10 waffle where each square is one percent. Switching datasets sends a diagonal wave across the grid and changed squares pop in on bouncy springs; hovering a square or legend chip lifts its category.
- Open component →Spring Area SparkFree
Dual-series comparison area spark chart whose smooth monotone curves morph on springs between periods with a hover/keyboard crosshair and a live delta pill.
- Open component →Stacked Bar ChartFree
Multi-series vertical stacked bars that spring-grow by category; clicking any legend chip smoothly isolates that series to baseline.