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/ui-sdk/chart.tsx

Examples

Installable blocks built with Chart — real use cases, delivered as source you own.

Analytics Dashboard

Three-band analytics screen: a multi-series active-sessions chart and KPI sparkline tiles, audience stacked bar cards, and supporting top-routes and top-interactions activity tables.

Collapsible Table

Heterogeneous infrastructure spend and usage ledger organized into three collapsible schema-specific table cards (Compute & Inference Clusters, Storage & Data Lakes, Third-Party Integrations & APIs) with a shared global time-range selector, cross-section search, expand/collapse-all controls, per-section column sorting, and expandable rows revealing a TanStack Charts run-rate trajectory.

Data Dashboard

Edge runtime A/B benchmark comparison dashboard (v3.2 Candidate vs. v3.1 Baseline) with environment and metric controls, dual-series KPI sparkline cards, synchronized overlay and workload bar charts, distribution breakdowns, and a regional statistical-significance table.

Executive Dashboard

Executive scorecard with a Q1–Q4 period switcher, KPI sparkline tiles, interactive ARR vs. plan TanStack Charts, segment mix and net-new ARR breakdowns, regional quota attainment table, strategic objectives tracker, and a narrative highlights rail.

Funnel & Cohort Dashboard

Developer activation and cohort retention dashboard featuring KPI sparklines, a horizontal conversion funnel with step-to-step drop-off metrics, interactive W0–W8 retention curves and stage trends, and a clickable weekly cohort retention heatmap.

Portfolio Dashboard

Treasury and infrastructure budget portfolio view with a period switcher, KPI summary tiles, historical reserve value curve, interactive allocation slices, stacked breakdown and budget-vs-actual bars, rate benchmark sparklines, and a filterable, sortable cost-center table.

Project Status Dashboard

Launch-readiness program tracker powered by TanStack Charts: release KPI sparklines, phase-filtered milestone Gantt with a Today marker, burndown vs. planned trajectory, sprint velocity, weighted scope allocation, blockers & risks callouts, and a health-filterable workstream progress table.

Service Monitoring

Live SRE service monitoring dashboard with time-range, service, and POP filters, TanStack Charts for latency percentiles, throughput, error rate, and KPI sparklines, 30-day SLO error budget meters, 90-day uptime strips, and a triage alert rail.

Inspired by the Charts charts from Saas UI.