A long series with a window: a crisp ink line with labelled axes, a transparent overview you brush or click, presets that tween, and milestones you add by clicking a day and naming it.
pnpm dlx shadcn@latest add @beautiful-ui-pro/brush-chartNeeds 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.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { BrushChart, type BrushDatum, type Milestone } from "@/components/ui/notchset/brush-chart";
const DAY = 864e5;
const daily: BrushDatum[] = Array.from({ length: 120 }, (_, i) => ({ date: new Date(Date.UTC(2026, 5, 1) + i * DAY), value: 20000 + Math.round(8000 * Math.sin(i / 11)) + i * 60 }));
export function RunsHistory() {
const [ms, setMs] = React.useState<Milestone[]>([{ id: "mig", index: 74, label: "ATLAS 3 FLASH" }]);
return <BrushChart data={daily} yMax={40000} title="RUNS PER DAY" milestones={ms} onMilestonesChange={setMs} />;
}data–
{ date, value }[]The series.
yMax–
numberThe scale.
presets–
number[]Window lengths (30, 90, 180, 365).
defaultWindow–
[start, end]Indices.
milestones / onMilestonesChange–
{ id, index, label }[]Your annotations.
components/ui/notchset/brush-chart.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.