summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-12-20 01:52:51 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-12-20 01:52:51 +0200
commit278628e1a09d9b3981c15dca24cb0179a27021b0 (patch)
tree357427d0b5adbffc5277f2b4792fb662dd9c4a9c /web
parentc82a0d0b61286810f6ff9fbfcd144e49be981827 (diff)
do not bring zero in the middle for gauge charts
Diffstat (limited to 'web')
-rw-r--r--web/dashboard.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/web/dashboard.js b/web/dashboard.js
index d7b41cc5ae..fedd5c4632 100644
--- a/web/dashboard.js
+++ b/web/dashboard.js
@@ -5395,13 +5395,6 @@
if(min > 0) min = 0;
if(max < 0) max = 0;
- // make sure zero is in the middle
- if(min < 0 && max > 0) {
- min = -min;
- if(min > max) max = min;
- min = -max;
- }
-
state.gaugeEvent.value = value;
state.gaugeEvent.min = min;
state.gaugeEvent.max = max;
@@ -5439,13 +5432,6 @@
if(min > 0) min = 0;
if(max < 0) max = 0;
- // make sure zero is in the middle
- if(min < 0 && max > 0) {
- min = -min;
- if(min > max) max = min;
- min = -max;
- }
-
NETDATA.gaugeSetLabels(state, value, min, max);
}
@@ -5485,13 +5471,6 @@
if(min > 0) min = 0;
if(max < 0) max = 0;
- // make sure zero is in the middle
- if(min < 0 && max > 0) {
- min = -min;
- if(min > max) max = min;
- min = -max;
- }
-
var width = state.chartWidth(), height = state.chartHeight(); //, ratio = 1.5;
//switch(adjust) {
// case 'width': width = height * ratio; break;