Compare several distributions as overlapping ridges.
Import it and pass your content. The props that matter most are listed next.
import { Ridgeline, type Ridge } from "@/components/ui/notchset/ridgeline";
const bump = (peak: number, width: number) => Array.from({ length: 33 }, (_, i) => Math.exp(-(((i / 4 - peak) / width) ** 2)));
const weeks: Ridge[] = [
{ label: "W33 · AUG 10", median: 3.8, density: bump(3.8, 1.4) },
{ label: "W34 · AUG 17", median: 2.1, density: bump(2.1, 0.7), emphasis: true },
{ label: "W35 · AUG 24", median: 2.1, density: bump(2.1, 0.7), emphasis: true },
];
export function LatencyByWeek() {
return <Ridgeline rows={weeks} xMax={8} marker={{ before: 1, label: "ATLAS 3 FLASH · AUG 14" }} />;
}rows–
{ label, median, density, emphasis?, detail? }[]Top to bottom.
xMax / ticks–
number / number[]The axis.
marker–
{ before, label }A change between rows.
unit–
stringAfter values.
Ridgelinedata-slot="ridgeline"
The chart.
components/ui/notchset/ridgeline.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @notchset-pro/ridgelineNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release
Pro is in early access.