Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(retention): show all series values in the chart tooltip (#60768)

Sam Penningtonbbedc6cd61af
diff --git a/products/product_analytics/frontend/insights/retention/shared/RetentionTooltip.tsx b/products/product_analytics/frontend/insights/retention/shared/RetentionTooltip.tsx
index 2450c97a87f7..d7725cb8591d 100644
--- a/products/product_analytics/frontend/insights/retention/shared/RetentionTooltip.tsx
+++ b/products/product_analytics/frontend/insights/retention/shared/RetentionTooltip.tsx
@@ -33,6 +33,10 @@ export function RetentionTooltip({
const seriesData = useMemo<SeriesDatum[]>(
() =>
context.seriesData
+ // Each retention series is already its own row (cohort or breakdown value), so the
+ // breakdown value is carried by `label`. Don't set `breakdown_value` here — it would
+ // flip InsightTooltip into its breakdown-column pivot, which renders one column per
+ // series and leaves every other cell as "–".
.map((entry, idx) => ({
id: idx,
dataIndex: context.dataIndex,
@@ -41,10 +45,6 @@ export function RetentionTooltip({
label: entry.series.label,
color: entry.color,
count: entry.value,
- breakdown_value:
- entry.series.meta?.breakdown_value != null
- ? String(entry.series.meta.breakdown_value)
- : undefined,
}))
// Show highest values first, matching the legacy LineGraph tooltip.
.sort((a, b) => b.count - a.count || (a.label ?? '').localeCompare(b.label ?? ''))