Cohort Retention

Weekly cohort grid where each cell's opacity scales with the retention percentage in the tone color.

Retention
W0W1W2W3W4
W0
100
64
48
41
38
W1
100
71
55
46
W2
100
68
52
W3
100
74

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Dashboard12 } from "@/components/beste/piece/dashboard12";

<Dashboard12
  heading="Retention"
  cohorts={[
    "W0",
    "W1",
    "W2",
    "W3"
  ]}
  weeks={[
    "W0",
    "W1",
    "W2",
    "W3",
    "W4"
  ]}
  retention={[
    [
      100,
      64,
      48,
      41,
      38
    ],
    [
      100,
      71,
      55,
      46,
      0
    ],
    [
      100,
      68,
      52,
      0,
      0
    ],
    [
      100,
      74,
      0,
      0,
      0
    ]
  ]}
  tone="violet"
/>

More Dashboard pieces

View all Dashboard
Revenue$48.2K
  • Subscriptions
    52%
  • One-time
    28%
  • Add-ons
    14%
  • Refunds
    6%

Donut Breakdown

dashboard9

Revenue split card with an SVG donut on the left showing weighted slices and a percentage legend on the right.

Conversion rate+12%
Last week3.41%
This week3.82%

Side-by-side compare card with previous and current values separated by an arrow, and a semantic delta pill in the header.

Top performers
Ada L.12,840
Marcus R.10,320
Priya S.8,960

Leaderboard

dashboard11

Top-three ranking card with gold, silver, and bronze medal circles next to names and monospaced scores.

Q2 revenue goal
$148Kof $240K
$92K to goal28 days left

Goal Card

dashboard13

Target-tracking card with a target icon, current / goal values, a tone-colored progress bar, and a deadline footer.

System health
82
Healthy

Health Gauge

dashboard14

Semi-circle gauge with a tone-colored arc that fills to the score, the number centered below, and a status line.

  • Move
    72 kcal
  • Exercise
    54 min
  • Stand
    88 hr

Activity Rings

dashboard15

Three concentric SVG rings with their own progress levels and a matching legend of labels, values, and units.