show daily total as well in reviews graph

This commit is contained in:
Damien Elmes 2020-07-08 14:07:10 +10:00
parent 05302e6c2f
commit da0e0e1854

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),