From da0e0e1854a45a591a5b8ba272da53e76405693a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 8 Jul 2020 14:07:10 +1000 Subject: [PATCH] show daily total as well in reviews graph --- ts/src/stats/reviews.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/src/stats/reviews.ts b/ts/src/stats/reviews.ts index b89e719d7..24a31ddd8 100644 --- a/ts/src/stats/reviews.ts +++ b/ts/src/stats/reviews.ts @@ -222,8 +222,9 @@ export function renderReviews( function tooltipText(d: BinType, cumulative: number): string { const day = dayLabel(i18n, d.x0!, d.x1!); - let buf = `
${day}
`; const totals = totalsForBin(d); + const dayTotal = valueLabel(sum(totals)); + let buf = `
${day}: ${dayTotal}
`; const lines = [ [ darkerGreens(1),