diff --git a/src/app/panels/histogram/module.html b/src/app/panels/histogram/module.html index da3007d0ea5..83f2fb6076c 100755 --- a/src/app/panels/histogram/module.html +++ b/src/app/panels/histogram/module.html @@ -24,6 +24,9 @@ .histogram-options label { margin: 0px 0px 0px 10px !important; } + .histogram-options span { + white-space: nowrap; + }
@@ -50,6 +53,9 @@ + + +
diff --git a/src/app/panels/histogram/module.js b/src/app/panels/histogram/module.js index 6b09d2973c2..bf3b54ea609 100755 --- a/src/app/panels/histogram/module.js +++ b/src/app/panels/histogram/module.js @@ -118,6 +118,19 @@ function (angular, app, $, _, kbn, moment, timeSeries) { }; + $scope.set_interval = function(interval) { + if(interval !== 'auto') { + $scope.panel.auto_int = false; + $scope.panel.interval = interval; + } else { + $scope.panel.auto_int = true; + } + }; + + $scope.interval_label = function(interval) { + return $scope.panel.auto_int && interval === $scope.panel.interval ? interval+" (auto)" : interval; + }; + /** * The time range effecting the panel * @return {[type]} [description]