From bf2c1c8587f80789fe2fbf8c544226c059dfba9a Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 25 Dec 2015 18:53:33 +0300 Subject: [PATCH] increase graph font even more --- web/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/index.html b/web/index.html index debb7d8..50998a2 100644 --- a/web/index.html +++ b/web/index.html @@ -9,7 +9,7 @@ var ww, wh; var hmax, hfact; var tmin, tmax, tfact; - var xzero = 36, yzero = 24; + var xzero = 40, yzero = 24; var cold_d = [], hot_d = []; function showdate(utime) { @@ -25,7 +25,7 @@ var inc, inc2, first, x, lb; if (scl < 2) { inc = 0.1; inc2 = 0.2; } - else if (scl < 5) { inc = 0.1; inc2 = 0.2; } + else if (scl < 5) { inc = 0.1; inc2 = 0.5; } else { inc = 0.5; inc2 = 1; } inc *= ord; inc2 *= ord; @@ -56,7 +56,7 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 12px Courier"; + ctx.font = "bold 16px Courier"; ctx.textAlign = "left"; ctx.fillText(showdate(tmin), px(tmin), py(0) + 20); ctx.textAlign = "right"; @@ -82,14 +82,14 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 12px Courier"; + ctx.font = "bold 16px Courier"; ctx.textAlign = "right"; ctx.fillText(0, px(tmin) - 6, py(0)); for (i = 0; comb[1][i]; i++) { ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 6, py(comb[1][i])); } ctx.textAlign = "left"; - ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 8); + ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 12); } /* @ updates global var `hmax` */ -- 2.39.2