Chart Sparkline
MRR and ARR revenue trend micro-chart embedded in an executive KPI card.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- MRR and ARR revenue trend micro-chart embedded in an executive KPI card.
- Inline sparkline in a table column for the 7-day evolution of price and volume of financial assets.
- Inline positive/negative bar chart for live monitoring of microservice latency and error rate.
Includes
- Inline trend sparkline
- Smooth bezier spline
- Area gradient fill
- Bidirectional bars
- Keyboard scrubbing
- Accessible aria slider
- Stat card integration
- Table cell integration
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add chart-sparklineInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/chart-sparklineUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-react- Registry dependencies
- None
- Files
7 files
- components/agentic-ui/chart-sparkline/index.tsx
- components/agentic-ui/chart-sparkline/types.ts
- components/agentic-ui/chart-sparkline/sparkline-math.ts
- components/agentic-ui/chart-sparkline/sparkline-table-cell.tsx
- components/agentic-ui/chart-sparkline/tone-colors.ts
- components/agentic-ui/chart-sparkline/sparkline.tsx
- components/agentic-ui/chart-sparkline/sparkline-stat-card.tsx
Related components
Chart Candlestick
Stock and cryptocurrency price chart with OHLC Japanese candlesticks and daily volume.
Details and live previewChart Cohort Retention
Weekly retention of product sign-up cohorts over the first twelve weeks.
Details and live previewChart Funnel Conversion
E-commerce checkout funnel from visits to completed order with the drop-off rate per step.
Details and live previewChart Gauge KPI
Service availability (SLA) against breach bands.
Details and live preview