Stop Rebuilding UI

Stats Sparkline Dual Series

A dual-series sparkline stats card for React and Next.js with two overlapping inline area charts in var(--chart-1) and var(--chart-2), thin 1.5px strokes, layered gradient fills, and current vs previous period comparison built with shadcn/ui and Tailwind CSS

Scroll to load preview

Compare current and previous period trends at a glance with this dual-series sparkline stats card for React and Next.js. Features a ChartContainer-wrapped Recharts AreaChart rendering two overlapping sparklines in var(--chart-1) and var(--chart-2), thin 1.5px strokes, per-series linearGradient defs, tabular-nums value displays, and a legend row with color dots and semantic delta pills. Built with TypeScript, ChartContainer from shadcn/ui, Recharts AreaChart, motion/react parent entrance with useReducedMotion, Lucide React TrendingUp icons, and Tailwind CSS. Perfect for MRR vs last month dashboards, DAU comparisons, week-over-week API traffic, and YoY product analytics cards.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.