@cryptotaxi247 / netdata-1 / commits / c590b9f48

fix for legend

Costa Tsaousis (ktsaou) committed Mar 30, 2014 at 01:21 UTC c590b9f48dbe80fb519dc3b203eafbc675787035
2 files changed +3 -3
web/index.html
+1 -1
@@ -70,7 +70,7 @@
70 }
71
72 function thumbWidth() {
73 - var items = Math.round(((window.innerWidth * 0.95) - 50) / 400);
73 + var items = Math.round(((window.innerWidth * 0.95) - 50) / 500);
74 if(items < 1) items = 1;
75
76 var width = Math.round(((window.innerWidth * 0.95) - 50) / items) - 1;
web/netdata.js
+2 -2
@@ -34,8 +34,8 @@ function refreshChart(chart) {
34
35 var hAxisTitle = null;
36 var vAxisTitle = null;
37 - if(height >= 250) hAxisTitle = "Time of Day";
38 - if(width >= 450) vAxisTitle = chart.vtitle;
37 + if(height >= 200) hAxisTitle = "Time of Day";
38 + if(width >= 350) vAxisTitle = chart.vtitle;
39
40 var title = chart.title;
41