Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA line and area chart with monotone cubic smoothing, a glowing stroke and a gradient fill on a frosted squircle card with real edge refraction. Scrubbing the plot moves a crosshair whose dot rides the curve while a glass value bubble follows it on a spring, and the headline value tracks the hovered point. The range selector is a segmented control with a sliding lens you can tap, drag across or drive with arrow keys, and switching ranges morphs the line and its scale between datasets with a springy overshoot. Light and dark appearance, keyboard inspection of points and a static frame 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 { SmoothAreaChart } from "@/components/hyperblur-pro/smooth-area-chart"
<SmoothAreaChart
backdrop=""
ranges={[{ id: "1W", label: "1W", values: [12, 14, 13, 17, 19, 18, 22] }]}
defaultRange="1W"
/>| Prop | Type | Default | Description |
|---|---|---|---|
| ranges | SmoothAreaRange[] | 1D, 1W, 1M, 1Y, All sample data | Datasets with id, label, values and optional point labels. Any lengths, resampled for morphing. |
| range | string | undefined | Controlled selected range id. |
| defaultRange | string | "1M" | Initial range when uncontrolled. |
| onRangeChange | (id: string) => void | undefined | Called when the user picks a range. |
| title | string | "Portfolio value" | Label above the headline value. |
| valuePrefix | string | "$" | Prefix for every formatted value. |
| color | string | "#3ef0b0" | Line and fill color when the range ends higher than it started. |
| downColor | string | "#ff6b81" | Line and fill color when the range ends lower. |
| height | number | 300 | Plot height in pixels. |
| appearance | "light" | "dark" | "auto" | "dark" | Color scheme of the glass card. |
| backdrop | string | "https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?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