# Chart Sparkline

MRR and ARR revenue trend micro-chart embedded in an executive KPI card.

- id: `chart-sparkline`
- Page: https://agentic-ui-kit.com/components/chart-sparkline
- Live preview: https://agentic-ui-kit.com/live/component/chart-sparkline

## Install

```bash
agentic-ui add chart-sparkline
npx shadcn@4.17.0 add @agentic-ui/chart-sparkline
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** inline-trend-sparkline, smooth-bezier-spline, area-gradient-fill, bidirectional-bars, keyboard-scrubbing, accessible-aria-slider, stat-card-integration, table-cell-integration, loading-skeleton, error-fallback, empty-state
- **Intents:** compare-over-time, track-status, show-composition
- **Suits domains:** finance, billing, analytics, operations, ecommerce, devtools
- **Interaction:** hover-scrubbing, keyboard-navigation, selection-detail
- **Screen role:** overview
- **Density:** compact
- **Dark mode:** yes
- **Use it 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
- **Avoid when:** Complex multi-axis visualizations with more than 3 simultaneous metric dimensions, Market depth analysis or advanced OHLC candlesticks that require labeled time axes
- **Preserve when adapting:** math-normalization, svg-path-generators, keyboard-interaction-model
- **Replace when adapting:** domain-metrics, formatting-prefixes, stat-card-copy
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** card, badge, button, table
- **npm dependencies:** lucide-react
- **npm dependencies (registry):** lucide-react@0.577.0
