Chart Cohort Retention
Weekly retention of product sign-up cohorts over the first twelve weeks.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Weekly retention of product sign-up cohorts over the first twelve weeks.
- Monthly subscriber survival by subscription month and half-life detection.
- Buyer retention by acquisition campaign in e-commerce.
For Intensity matrix without relative survival semantics, such as activity by hour and day, use Chart Heatmap Matrix.
Includes
- Cohort grid
- Triangular matrix
- Intensity scale
- Weekly monthly granularity
- Metric switching
- Weighted period average
- Half life detection
- Cell inspector
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
- 2 templates and blueprints on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add chart-cohort-retentionnpx shadcn@4.17.0 add @agentic-ui/chart-cohort-retentionUsed in
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in its own files; replace it with your own.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
7 files
- components/agentic-ui/chart-cohort-retention/index.tsx
- components/agentic-ui/chart-cohort-retention/cohort-retention-grid.tsx
- components/agentic-ui/chart-cohort-retention/fixtures.ts
- components/agentic-ui/chart-cohort-retention/types.ts
- components/agentic-ui/chart-cohort-retention/cohort-legend.tsx
- components/agentic-ui/chart-cohort-retention/cohort-math.ts
- components/agentic-ui/chart-cohort-retention/cohort-summary-ribbon.tsx
Related components
Chart Candlestick
Stock and cryptocurrency price chart with OHLC Japanese candlesticks and daily volume.
Details and live previewChart Funnel Conversion
E-commerce checkout funnel from visits to completed order with the drop-off rate per step.
Details and live previewChart Gauge KPI
Service availability (SLA) against breach bands.
Details and live previewChart Heatmap Matrix
Distribution of traffic and API requests by hour and day of the week.
Details and live preview