Design System/

Insight Charts

Apple Health–style charts that lead with the change, not the absolute value. Pair a current period with a comparison; the component computes the delta and renders a glance-able summary.

Presets

Drop-in metric configs that bundle tone, unit, comparison wording, and direction sense. Spread a preset onto any component; pass only the data.

healthPresets.exerciseMinutes
Exercise Minutes
51 min/day
+76% up vs last month
healthPresets.restingHeartRate
Resting Heart Rate
53 bpm
9 bpm lower than last month
healthPresets.heartRateRecovery
Heart Rate Recovery
42 bpm
Recovery is trending stronger — 50% better than last month
healthPresets.sleepHours
Average Sleep
7.3 hrs
+4% up vs last month
healthPresets.workouts
Workouts
18
+50% up vs last month
Override: weekly comparison
Steps
9,420 /day
+20% up vs last week
ComparisonBars + preset

Exercise vs last month

Running142 min/day +45%
Cycling88 min/day −20%
Strength64 min/day +23%
Walking215 min/day +19%

Market presets

Stocks / securities / portfolio. Shorter comparison windows, position-dependent direction, currency unit at the call site.

marketPresets.price (AAPL)
Price
$193.85
+2% up vs prior close
marketPresets.dayChange (absolute)
Day Change
+2.34%
Flat vs the day
marketPresets.portfolioValue (currency)
Portfolio Value
$117,320.00
+1% up vs prior close
marketPresets.unrealizedPnl
Unrealized P&L
$11,320.00
+13% up vs cost basis
marketPresets.volume (vs 30d avg)
Volume
48,200,000
+48% up vs 30-day avg
marketPresets.drawdown (absolute)
Drawdown
+4.2%
Flat vs period high
context: short position
TSLA Short
−4.86%
Flat vs the day
Override: GBP currency
Portfolio Value
£92,410.00
+1% up vs prior close
Holdings: today vs prior close

Holdings vs prior close

AAPL$193.85 +2%
MSFT$412.40 ~0%
NVDA$138.20 +4%
GOOGL$172.50 ~0%
TSLA$248.60 −5%

TrendCard

Headline value + auto-generated delta sentence + optional sparkline.

Activity (up = good)
Exercise Minutes
51 min/day
+76% up vs last month
Vital (down = good)
Resting Heart Rate
53 bpm
−15% down vs last month
Sleep tone
Average Sleep
7.3 hrs
+4% up vs last month
No sparkline
Workouts Completed
18
+50% up vs last month
Flat (~no change)
Steps
8,420 /day
About the same as last week
Custom caption
Heart Rate Recovery
42 bpm
Your recovery is trending stronger — 50% better than last month

ComparisonBars

Horizontal bars showing this period vs last, with the % delta on each row.

Exercise vs last month

Exercise vs last month

Running142 min +45%
Cycling88 min −20%
Strength64 min +23%
Walking215 min +19%
Lower is better

Avg Resting HR by week

Week 162 bpm −5%
Week 260 bpm −5%
Week 358 bpm −5%
Week 455 bpm −8%

DeltaSparkline

Baseline-relative sparkline — above baseline fills green, below fills red. No axes.

Auto baseline (mean)
Daily Exercise30 days
Explicit baseline
Sleep vs 8h goal
Inverted (lower = better)
Resting HR vs mean