← Prompt Lab

Interactive Vital Sparkline

Apple Health Smooth Bezier Chart with Touch Scrub
MedTech · Data & Flows3.5 KB0 copies
SHARE
19 / PLAYGROUNDInteractive Vital Sparkline
BRAND COLORS
Fullscreen ↗

A lightweight, chart-library-free Apple Health vital sparkline rendering smooth cubic Bezier gradients with silky pointer/touch crosshair scrubbing across HRV, Heart Rate, and SpO2.

Sparkline ChartTouch ScrubZero Chart Lib3.5 KB
// Drop the standalone vital-sparkline.html into /public/effects/vital-sparkline.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function VitalSparklineEmbed() {
  return (
    <div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
      <iframe
        src="/effects/vital-sparkline.html"
        title="Interactive Vital Sparkline"
        className="h-full min-h-[480px] w-full border-0"
        loading="lazy"
      />
    </div>
  )
}

WHY THIS WORKS IN PRODUCTION

  • Zero Chart.js / Recharts bloat — smooth inline SVG cubic Bezier in 3.5 KB
  • Instant mouse & mobile touch scrubbing with live tabular-nums readout
  • Easily adapts to analytics, revenue sparklines, stock prices & health metrics
  • Instant metric switching (HRV, BPM, SpO2) with crisp visual hierarchy

DROP-IN SPECS // WEB & MOBILE FIT

UI SLOTInteractive & Data
BEST USE CASEHealth Dashboards, SaaS Analytics Cards & Mobile Stock/Crypto Charts
IDEAL PLACEMENTDashboard Metric Widget or Mobile Detail View
BUNDLE SIZE3.5 KB
DEPENDENCIESZero (Inline SVG)
MOBILE / TOUCHSmooth Finger Scrub
GPU WEIGHTLight · 60fps