]> www.average.org Git - pulsecounter.git/blobdiff - web/index.html
increase graph font even more
[pulsecounter.git] / web / index.html
index debb7d8b73aa02dcdb50c35a8292e4891625ebe7..50998a2b0a6963003fe1ec2aafc72bda60dae44e 100644 (file)
@@ -9,7 +9,7 @@
   var ww, wh;
   var hmax, hfact;
   var tmin, tmax, tfact;
   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) {
   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; }
     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;
     else { inc = 0.5; inc2 = 1; }
     inc *= ord;
     inc2 *= ord;
@@ -56,7 +56,7 @@
     ctx.stroke();
 
     ctx.fillStyle = "black";
     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";
     ctx.textAlign = "left";
     ctx.fillText(showdate(tmin), px(tmin), py(0) + 20);
     ctx.textAlign = "right";
     ctx.stroke();
 
     ctx.fillStyle = "black";
     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.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` */
   }
 
   /* @ updates global var `hmax` */