From 037610715db366f89d4ef7f7b45e2dd25346a0bd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 5 Jan 2023 10:21:26 +1000 Subject: [PATCH] Fix incorrect count in 'added' tooltip --- ts/graphs/added.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/graphs/added.ts b/ts/graphs/added.ts index fc6cf828d..2ba17270e 100644 --- a/ts/graphs/added.ts +++ b/ts/graphs/added.ts @@ -102,7 +102,7 @@ export function buildHistogram( _percent: number, ): string { const day = dayLabel(bin.x0!, bin.x1!); - const cards = tr.statisticsCards({ cards: bin.length }); + const cards = tr.statisticsCards({ cards: getNumericMapBinValue(bin as any) }); const total = tr.statisticsRunningTotal(); const totalCards = tr.statisticsCards({ cards: cumulative }); return `${day}:
${cards}
${total}: ${totalCards}`;