From: Eugene Crosser Date: Thu, 24 Dec 2015 05:37:40 +0000 (+0300) Subject: use 12px font for labels X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=commitdiff_plain;h=9dcf18f64ca3a0df27551f392d2ad0263479af52;hp=5cfa02e2570dc338060dc713ff386670c7a25660 use 12px font for labels --- diff --git a/web/index.html b/web/index.html index bec6537..f634671 100644 --- a/web/index.html +++ b/web/index.html @@ -10,7 +10,7 @@ var ww, wh; var hmax, hfact; var tmin, tmax, tfact; - var xzero = 20, yzero = 20; + var xzero = 36, yzero = 24; var cold_d = [], hot_d = []; function showdate(utime) { @@ -57,11 +57,11 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 8px Courier"; + ctx.font = "bold 12px Courier"; ctx.textAlign = "left"; - ctx.fillText(showdate(tmin), px(tmin), py(0) + 16); + ctx.fillText(showdate(tmin), px(tmin), py(0) + 20); ctx.textAlign = "right"; - ctx.fillText(showdate(tmax), px(tmax), py(0) + 16); + ctx.fillText(showdate(tmax), px(tmax), py(0) + 20); } function yaxis() { @@ -83,14 +83,14 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 8px Courier"; + ctx.font = "bold 12px Courier"; ctx.textAlign = "right"; - ctx.fillText(0, px(tmin) - 2, py(0)); + ctx.fillText(0, px(tmin) - 6, py(0)); for (i = 0; comb[1][i]; i++) { - ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 2, py(comb[1][i])); + ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 6, py(comb[1][i])); } ctx.textAlign = "left"; - ctx.fillText("l/h", px(tmin) + 2, py(hmax) + 8); + ctx.fillText("l/h", px(tmin) + 4, py(hmax) + 8); } /* @ updates global var `hmax` */ @@ -328,7 +328,7 @@ canvas#plot { display: block; width: 640px; height: 320px; - /*border: solid 1px black;*/ + /* border: solid 1px black; */ } div#queries { margin-left: auto;