Fix incorrect count in 'added' tooltip

This commit is contained in:
Damien Elmes 2023-01-05 10:21:26 +10:00
parent 8206f39bdc
commit 037610715d

View file

@ -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}:<br>${cards}<br>${total}: ${totalCards}`;