Cohort chart
A cohort chart shows retention or conversion by start cohort and period. It derives each rate from counts and weights the averages by cohort size.
- React
import { CohortChart } from 'boardplot/react/cohort';- Reference
- Data, options and sizing
- Use for
- Retention by signup cohort · Repeat purchase by first month · Subscription churn by start month
- Not for
- Precomputed retention percentages; cohort takes active-member counts and derives the rates.
Paying-account retention by start month
A cohort triangle of paying-account retention for the twelve 2025 monthly cohorts, with the month-3 column outlined; month-3 retention rises from 50% for January to 64% for September.
saas-logo-retention
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":720,"height":580} to the width of the site frame; options.title.
{
"type": "cohort",
"data": {
"periodLabel": "Month",
"cohorts": [
{
"id": "c01",
"label": "Jan 2025",
"active": [
1200,
748,
664,
600,
539,
478,
437,
388,
355,
315,
279,
255
]
},
{
"id": "c02",
"label": "Feb 2025",
"active": [
1150,
732,
662,
584,
524,
460,
403,
364,
319,
288,
253
]
},
{
"id": "c03",
"label": "Mar 2025",
"active": [
1300,
828,
758,
711,
655,
618,
566,
518,
489,
448
]
},
{
"id": "c04",
"label": "Apr 2025",
"active": [
1400,
953,
849,
765,
694,
618,
567,
505,
450
]
},
{
"id": "c05",
"label": "May 2025",
"active": [
1350,
892,
849,
784,
724,
689,
637,
606
]
},
{
"id": "c06",
"label": "Jun 2025",
"active": [
1500,
1045,
940,
862,
785,
706,
655
]
},
{
"id": "c07",
"label": "Jul 2025",
"active": [
1600,
1080,
1041,
981,
940,
880
]
},
{
"id": "c08",
"label": "Aug 2025",
"active": [
1550,
1106,
1024,
971,
904
]
},
{
"id": "c09",
"label": "Sep 2025",
"active": [
1700,
1239,
1154,
1088
]
},
{
"id": "c10",
"label": "Oct 2025",
"active": [
1750,
1299,
1232
]
},
{
"id": "c11",
"label": "Nov 2025",
"active": [
1800,
1338
]
},
{
"id": "c12",
"label": "Dec 2025",
"active": [
1900
]
}
]
},
"options": {
"size": {
"width": 1000
},
"title": "Newer cohorts retain better: month-3 retention improved from 50% to 64% through 2025",
"subtitle": {
"company": "Nurthwold Cloud",
"measure": "Paying accounts still active",
"period": "Cohorts Jan-Dec 2025"
},
"unit": "% of cohort base",
"source": "Illustrative subscription ledger, monthly logo snapshots",
"highlight": "t3"
}
}Completed cohorts with weighted average
A cohort table of customer retention for four monthly cohorts shows month-1 retention of 64% to 68%, a weighted average of 66% at month 1, 58% at month 2 and 51% at month 3, each with its base.
retention-stepped-content
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.formatScope.
{
"type": "cohort",
"data": {
"periodLabel": "Month",
"cohorts": [
{
"id": "nov-25",
"label": "Nov 2025",
"active": [
1100,
704,
616,
561,
517
]
},
{
"id": "dec-25",
"label": "Dec 2025",
"active": [
1160,
766,
685,
638
]
},
{
"id": "jan-26",
"label": "Jan 2026",
"active": [
1240,
843,
769
]
},
{
"id": "feb-26",
"label": "Feb 2026",
"active": [
1310,
917
]
},
{
"id": "mar-26",
"label": "Mar 2026",
"active": [
900
]
}
]
},
"options": {
"variant": "stepped",
"formatScope": "classic",
"visiblePeriods": [
0,
1,
2,
3
],
"showPercentSign": false,
"total": "weighted",
"excludeCurrentPeriod": true,
"title": "Completed cohorts retain at least 64% after one month",
"subtitle": {
"measure": "Customers retained",
"period": "Nov 2025-Mar 2026"
},
"unit": "% of cohort base",
"source": "Subscription ledger, completed monthly cohorts through Feb 2026",
"mode": "compact"
}
}Retention against the previous month
A cohort table shows retention as a share of the previous month, from 64% to 68% at month 1 and 88% to 91% later, with the highest steps shaded darkest.
retention-previous-period
JSON spec
This spec includes the theme shown and the options you selected.
{
"type": "cohort",
"data": {
"periodLabel": "Month",
"cohorts": [
{
"id": "nov-25",
"label": "Nov 2025",
"active": [
1100,
704,
616,
561,
517
]
},
{
"id": "dec-25",
"label": "Dec 2025",
"active": [
1160,
766,
685,
638
]
},
{
"id": "jan-26",
"label": "Jan 2026",
"active": [
1240,
843,
769
]
},
{
"id": "feb-26",
"label": "Feb 2026",
"active": [
1310,
917
]
},
{
"id": "mar-26",
"label": "Mar 2026",
"active": [
900
]
}
]
},
"options": {
"variant": "stepped",
"formatScope": "classic",
"visiblePeriods": [
0,
1,
2,
3
],
"showPercentSign": false,
"total": false,
"excludeCurrentPeriod": true,
"title": "Customer retention compared with the previous month",
"subtitle": {
"measure": "Customers retained",
"period": "Nov 2025-Mar 2026"
},
"unit": "% of previous period",
"source": "Subscription ledger, completed monthly cohorts through Feb 2026",
"basis": "previous",
"steps": [
70,
80,
85,
90
]
}
}Minimal spec
Save this spec as cohort.json and run the command.
{
"type": "cohort",
"data": {
"periodLabel": "Month",
"cohorts": [
{ "id": "jan", "label": "Jan 2026", "active": [100, 70, 60], "size": 100 },
{ "id": "feb", "label": "Feb 2026", "active": [80, 60], "size": 80 }
]
},
"options": {
"unit": "% of cohort base",
"title": "January retains 60% of its customers at month two",
"source": "Illustrative data"
}
}npx boardplot render cohort.json --out cohort.svg