kipluo
Free componentChartsReact + FlutterDashboardsStatus & progress

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 interactive demo · Switch the year, then hover the legend.
Traffic by device, 2025: Mobile 46%, Desktop 31%, Tablet 13%, other 10%
Motion preview loop
Traffic by device, 2025: Mobile 46%, Desktop 31%, Tablet 13%, other 10%

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

Colours
Shadow
<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-chart

Working code example

spring-waffle-chart.tsx
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 / ToolStatusDetails
React 18 & 19Full supportZero peer runtime lock-in beyond @kipluo/core.
Next.js App RouterFull supportShips with 'use client' boundaries; SSR-safe hydration.
Vite / Remix / AstroFull supportStandard ESM TypeScript source files you own.
Tailwind CSS v4 & shadcn/uiNativeInherits CSS variables and installs via shadcn registry or CLI.
Flutter (Dart)Native packageMatching spring physics, themes, and PCM audio in packages/flutter/kipluo.

Build it yourself: related tutorials

All tutorials →