Procházet zdrojové kódy

Default to auto scaling for grid min setting

fixes #226
Gregoire Seux před 11 roky
rodič
revize
3a35dee0e3

+ 2 - 2
src/app/dashboards/default.json

@@ -48,7 +48,7 @@
           "y_formats": ["short", "short"],
           "y_formats": ["short", "short"],
           "grid": {
           "grid": {
             "max": null,
             "max": null,
-            "min": 0
+            "min": null
           },
           },
           "resolution": 100,
           "resolution": 100,
           "lines": true,
           "lines": true,
@@ -150,4 +150,4 @@
     "hide": false
     "hide": false
   },
   },
   "refresh": false
   "refresh": false
-}
+}

+ 1 - 1
src/app/panels/graphite/module.js

@@ -94,7 +94,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
        */
        */
       grid          : {
       grid          : {
         max: null,
         max: null,
-        min: 0,
+        min: null,
         threshold1: null,
         threshold1: null,
         threshold2: null,
         threshold2: null,
         threshold1Color: 'rgba(216, 200, 27, 0.27)',
         threshold1Color: 'rgba(216, 200, 27, 0.27)',