Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA grouped or stacked bar chart with continuous curvature caps, drawn in SVG and driven by real spring physics: bars rise in a staggered cascade when they scroll into view and every bar morphs position and size when you switch between grouped and stacked or between vertical and horizontal. Hovering or arrowing through a category lifts its bars, dims the rest and opens a glass tooltip with every series and the total, and in stacked mode a dashed goal line with a pill label marks the target for totals. Sits on a frosted squircle card with edge refraction, supports light and dark appearance and controlled or uncontrolled modes, and shows the final layout under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { BarChartSpring } from "@/components/hyperblur-pro/bar-chart-spring"
<BarChartSpring
backdrop=""
series={[{ name: "Plan", color: "#8b97ff" }, { name: "Actual", color: "#46e6c8" }]}
data={[{ label: "Q1", values: [40, 52] }, { label: "Q2", values: [60, 58] }]}
goal={100}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| data | BarDatum[] | 8 sample months | Categories with a label and one value per series. |
| series | BarSeries[] | Direct, Referral, Social | Series names and colors. |
| title | string | "Visitors by channel" | Card heading. |
| subtitle | string | "Monthly unique sessions, in thousands" | Small line under the heading. |
| unit | string | "k" | Suffix for axis, goal and tooltip values. |
| goal | number | null | 140 | Target for stacked totals, drawn as a dashed line in stacked mode. Null hides it. |
| stacked | boolean | undefined | Controlled stacked mode. Use defaultStacked for uncontrolled. |
| defaultStacked | boolean | true | Initial stacked mode when uncontrolled. |
| orientation | "vertical" | "horizontal" | undefined | Controlled orientation. Use defaultOrientation for uncontrolled. |
| defaultOrientation | "vertical" | "horizontal" | "vertical" | Initial orientation when uncontrolled. |
| onModeChange | (mode) => void | undefined | Called with the new stacked and orientation values. |
| onBarSelect | (index: number | null) => void | undefined | Called when the hovered or focused category changes. |
| height | number | 320 | Plot height in pixels. |
| appearance | "light" | "dark" | "auto" | "dark" | Color scheme of the glass card. |
| backdrop | string | "https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=1600&q=80" | Photo behind the card. Empty string renders only the card. |
Source code is included in Pro and above