This period's luminous line over the period before as a dashed ghost.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/ghost-trend.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/ghost-trend.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { GhostTrend } from "@/components/ui/notchset/ghost-trend";
const now = [52, 55, 50, 54, 57, 53, 49, 51, 56, 58, 54, null, 52, 55, 57, 59, 56, 53, 55, 58, 60, 57, 54, 56, 58, 55, 57, 59, 57, 61];
const last = [50, 49, 53, 51, 48, 52, 50, 47, 41, 37, 40, 45, 49, 51, 50, 52, 49, 51, 53, 50, 52, 54, 51, 49, 52, 50, 53, 51, 52, 50];
export default function GhostTrendDemo() {
return (
<div className="w-full max-w-[960px]">
<GhostTrend label="HRV, this month" points={now.map((value, i) => ({ label: `${((i + 25) % 30) + 1} ${i < 5 ? "Sep" : "Oct"}`, value }))} ghost={last} band={{ low: 47, high: 55 }} avg={55} format={(v) => `${v} ms`} nowName="This month" ghostName="Last month" />
</div>
);
}components/ui/notchset/ghost-trend.tsx
points–
GhostTrendPoint[]Required.
ghost–
(number | null)[]the period before, point for point
band–
{ low: number; high: number }your usual, drawn as a soft band
avg–
number | nulloverlay–
{ name: string; values: (number | null)[] }a second signal on the same axis, as a quiet ink trace
formatString
(v: number) => stringlabel–
stringthe chart's name, "HRV, this month"
nowName"This period"
stringghostName"The period before"
stringheight260
numbergaps"open"
"open" | "dotted""dotted" bridges a gap inside the line with a quiet dotted segment (a day's ring readings); default leaves it open
pinsfalse
booleanpin the lowest and the highest value on the line, each with its value and when
marks[]
{ at: number; label: string }[]events at a point (a logged dose), drawn as small diamonds along the top; `marksName` names them in the key
marksName"Logged"
stringlabelEvery–
numberlabel every nth point on the time axis (default: about six labels)
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Wearables and trends. Connect a device, trust what it reports, and read any metric from Day to YTD with what drove it.
4 free · 4 ProSee the Wearables and trends kit