How much finished each period, one bar each.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add @notchset-pro/throughput-barspnpm dlx shadcn@latest add @notchset-pro/throughput-barsNeeds your registry key. Every components.json style gets the same files.
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.
import { ThroughputBars } from "@/components/ui/notchset/blocks/throughput-bars";
const WEEKS = [1, 2, 3, 3, 4, 6, 2, 7, 3, 6, 4, 5, 2];
export default function ThroughputBarsDemo() {
return (
<div className="w-full max-w-[520px]">
<ThroughputBars
label="Done per week, the last 12 weeks and this week so far"
periods={WEEKS.map((count, i) => ({ label: i === 12 ? "This week so far" : `Week ${i + 1}`, axis: i === 12 ? "Now" : i % 4 === 0 ? `W${i + 1}` : "", count, partial: i === 12, sampled: i >= 4 && i < 12 }))}
/>
</div>
);
}components/ui/notchset/blocks/throughput-bars.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
label–
stringRequired.
periods–
ThroughputPeriod[]Required.
unit(n) => `${n} done`
(n: number) => stringhow a count reads in the pill ("4 done")
sampledLabel"Weeks the forecast is built from"
stringwhat the strong bars are ("Weeks the forecast is built from")
height150
numberGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
New: done per period in the violet glow (the latest complete period the focus bar), the partial period hollow in a dashed series outline; the weeks a forecast is built from drawn stronger with a key, and one colour with no key when none are.
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.
Pro is in early access.