ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 6, py(comb[1][i]));
}
ctx.textAlign = "left";
- ctx.fillText("l/h", px(tmin) + 4, py(hmax) + 8);
+ ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 8);
}
/* @ updates global var `hmax` */
dv = times[i+1][1] - times[i][1];
dt = times[i+1][0] - times[i][0];
if (dt != 0 && dv != 0) {
- v = (dv / dt) * 360 ; /* Litres per hour */
+ v = (dv / dt) * 600 ; /* Litres per min */
if (hmax < v) hmax = v;
res.push([times[i][0], v]);
}