React Spring Waffle Chart – Animated Chart
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. Customize colours, shadows, and Playful, Minimal, or Mono styles. Copy React & Flutter code or install via CLI.
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
<SpringWaffleChart />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-waffle-chartWorking code example
import { SpringWaffleChart } from "@/components/kipluo/spring-waffle-chart";
export function Example() {
return (
<div className="flex items-center justify-center p-8">
<SpringWaffleChart />
</div>
);
}What Spring Waffle Chart does
- 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.
- Designed for Dashboards, Status & progress 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: Period switch is a radiogroup (arrow keys). Legend chips are buttons with aria-pressed that pin a highlight; the grid has a full text summary.
Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.
Sound cues: A paper flip when switching data, a pop as the wave lands, and pitched ticks over the legend. Disable per instance with sound={false} or globally via setSoundEnabled(false).
API reference
datasets{ label, segments: { label, value }[] }[]- Values are percentages; the remainder shows as empty squares. Default
Traffic by device. defaultIndexnumber- Initial dataset. Default
0. labelstring- Accessible name; the breakdown is appended. Default
"Traffic by device". cellnumber- Square size in px. Default
14. style"playful" | "minimal" | "mono"- Set with data-kstyle on any ancestor. Default
inherited. 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 →Stacked Progress BarFree
Multi-segment bar where shares resize smoothly on springs and hovering a segment highlights its Share readout.
- Open component →Gauge MeterPaid
A speedometer whose needle is an under-damped spring: it overshoots and settles like a real meter. Warning and danger zones colour the arc.
- Open component →Heatmap GridPaid
Activity heatmap calendar whose cells ripple-pop on dataset change and pitch-tick to their intensity when hovered.
- Open component →Speedometer ArcPaid
Semi-circular performance tachometer with color-coded zones, velocity-trailing spring needle, and a bouncy peak marker.
- Open component →Activity RingsPaid
Concentric triple activity rings (Move, Focus, Ship) with rounded endcaps, spring sweep animations, quick boost triggers, and a chime when all three close.