improve unit scaling on gauge.js hover when it is zoomed/panned
Costa Tsaousis (ktsaou) committed
Oct 6, 2017 at 01:57 UTC
e3029a01a25eb50d39a59d71e17a4a0f4ff1fca9
1 file changed
+2
-1
web/dashboard.js
+2
-1
@@ -6226,6 +6226,7 @@ var NETDATA = window.NETDATA || {};
6226
min = 0;
6227
max = 1;
6228
NETDATA.gaugeSetLabels(state, null, null, null);
6229
+ state.tmp.gauge_instance.set(0);
6230
}
6231
else {
6232
value = data.result[0];
@@ -6239,10 +6240,10 @@ var NETDATA = window.NETDATA || {};
6240
if(state.tmp.gaugeMin === null && min > 0) min = 0;
6241
if(state.tmp.gaugeMax === null && max < 0) max = 0;
6242
6243
+ NETDATA.gaugeSet(state, value, min, max);
6244
NETDATA.gaugeSetLabels(state, value, min, max);
6245
}
6246
6245
- NETDATA.gaugeSet(state, value, min, max);
6247
return true;
6248
};
6249