show daily total as well in reviews graph

This commit is contained in:
Damien Elmes 2020-07-08 14:07:10 +10:00
parent 3d8babef39
commit 367a2d17ba

View file

@ -222,8 +222,9 @@ export function renderReviews(
function tooltipText(d: BinType, cumulative: number): string {
const day = dayLabel(i18n, d.x0!, d.x1!);
let buf = `<div>${day}</div>`;
const totals = totalsForBin(d);
const dayTotal = valueLabel(sum(totals));
let buf = `<div>${day}: ${dayTotal}</div>`;
const lines = [
[
darkerGreens(1),