About
An SVG retention-triangle chart that shows signup cohorts against periods, coloring each cell by percent retained with a row/column crosshair on hover and a period-average summary row.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cohort Retention Chart to your project and fits it to your theme.
Code
How Cohort Retention Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import CohortChart from "@/components/ui/cohort-chart";
export default function CohortChartDemo() {
return (
<div className="w-full max-w-4xl p-6">
<CohortChart />
</div>
);
}








