All components

Chart

Composable area, line, bar, sparkline, and category-bar data visualizations powered by TanStack Charts and StyleX.

Reference line & zoomed Y-domain

Overlay a dashed horizontal `referenceLine` threshold with an optional label and narrow the vertical scale via `yDomain` so tight variance stays legible.

Line chart

Multi-series trends with optional point markers, crosshair hover tooltips, and click-to-toggle legend items.

Bar chart (grouped & stacked)

Switch between side-by-side grouped bars and stacked bars in vertical or horizontal layouts.

Grouped vertical ($k)
Stacked horizontal ($k)

Sparklines in KPI cards

Axis-free inline line and area sparklines with optional hover tooltips for compact metric tiles.

Net MRR+18.4%
$71.4k
p95 Latency-29.2%
34 ms
Monthly Churn+0.6%
2.5%

Category bar

Proportional multi-segment horizontal bar with an optional target marker pin and inline summary legend.

Quota attainmentTarget: 75%
Closed Won42%
Commit26%
Best Case18%
Remaining14%

Install

Source

components/ui/ark-ui/chart.tsx

Inspired by the Charts charts from Saas UI.