SUSupaUI

Data

Chart

Custom SVG charts: Bar (pixel-quantised), Line, Sparkline, Donut, Heatmap. No recharts, no visx.

Install

bash
npx shadcn@latest add https://supaui.dev/r/chart.json

Bar — pixel mode

Daily activity
Bar heights quantised to 8px steps.
12Mon
18Tue
9Wed
22Thu
30Fri
17Sat
24Sun
Last 7 days · pixel mode

Bar — smooth

Daily activity
Continuous heights, success tone.
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Last 7 days · smooth

Line

Monthly trend
Sharp polyline with pixel ticks.
Q1Q2Q3Q4Q5Q6
2026 Q1–Q6

Sparkline

smoothpixel

Donut

Traffic by source
Last 30 days, percentage split.
sessions
184k
  • Direct42%
  • Search28%
  • Social14%
  • Referral9%
  • Email7%
Total · 184,209 sessions

Interactive — Bar with hover tooltip

Daily activity
Hover bars to surface their value.
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Last 7 days · interactive

Interactive — Line with crosshair

Monthly trend
Snaps to the nearest x and renders a crosshair + tooltip.
Q1Q2Q3Q4Q5Q6
2026 Q1–Q6

Heatmap

Activity
By weekday × hour bucket.
MonTueWedThuFriSatSun
000408121620
UTC · 2026 · 04

API

  • ChartBardata, height, tone, pixel, max, showValues, interactive, formatValue.
  • ChartLinedata, height, tone, showGrid, showDots, interactive, formatValue. Pointer-snap with crosshair + active marker.
  • ChartTooltip — pixel-pip + label + value bubble. Reused internally by interactive Bar/Line; exported for custom compositions.
  • ChartSparklinedata, width, height, tone, pixel.
  • ChartDonutdata, size, thickness, gap, centerLabel, centerValue. Per-segment tone walks the palette automatically.
  • ChartHeatmapdata (2D array), rowLabels, colLabels, cell, gap, tone, max. Cells use opacity to encode intensity against the tone color.
  • tone — accent (default) · success · warning · danger · info · ink.