kipluo
Included in $29 packChartsReact + FlutterDashboardsSocial

React Bubble Physics Chart – Animated Chart

Values as bubbles that pack themselves with real collisions. Switching datasets resizes every bubble on a spring and they jostle into place; grab one to shove the others around or fling it back into the cluster. Customize colours, shadows, and Playful, Minimal, or Mono styles. Copy React & Flutter code or install via CLI.

Live interactive demo · Drag or fling a bubble, then switch weeks.

Drag a bubble, or tab through them

Motion preview loop

Drag a bubble, or tab through them

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
<BubblePhysicsChart />

Installation

Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.

Install

$ npx kipluo add bubble-physics-chart

Working code example

bubble-physics-chart.tsx
import { BubblePhysicsChart } from "@/components/kipluo/bubble-physics-chart";

export function Example() {
  return (
    <div className="flex items-center justify-center p-8">
      <BubblePhysicsChart />
    </div>
  );
}

What Bubble Physics Chart does

  • Values as bubbles that pack themselves with real collisions. Switching datasets resizes every bubble on a spring and they jostle into place; grab one to shove the others around or fling it back into the cluster.
  • Designed for Dashboards, Social 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: Each bubble is a button: Tab or arrow keys move between them, Enter or Space gives it a poke. The focused value is announced politely.

Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.

Sound cues: Collision ticks pitched by bubble size, a pop on grab or poke, a swish on fling and a whoosh on dataset switch. Disable per instance with sound={false} or globally via setSoundEnabled(false).

API reference

datasets{ label, items: { label, value }[] }[]
Bubble area is proportional to value. Default Hours by activity.
defaultIndexnumber
Initial dataset. Default 0.
unitstring
Suffix for values. Default "h".
labelstring
Accessible name of the chart. Default "Hours by activity".
width / heightnumber
Plot size in px. Default 260 / 176.
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 →