From 690a6e1a59da5b2a836b81af844ee43d3ed34668 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 22 Dec 2015 09:56:24 +0100 Subject: [PATCH] feat(graphs): zoom out on double click --- public/app/plugins/panels/graph/module.html | 2 +- public/app/plugins/panels/graph/module.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/panels/graph/module.html b/public/app/plugins/panels/graph/module.html index 9c49c42741d..068223a5366 100644 --- a/public/app/plugins/panels/graph/module.html +++ b/public/app/plugins/panels/graph/module.html @@ -10,7 +10,7 @@ Datapoints outside time range Can be caused by timezone mismatch between browser and graphite server -
+
diff --git a/public/app/plugins/panels/graph/module.js b/public/app/plugins/panels/graph/module.js index 817a924d965..731fb47ae6d 100644 --- a/public/app/plugins/panels/graph/module.js +++ b/public/app/plugins/panels/graph/module.js @@ -138,6 +138,10 @@ function (angular, _, moment, kbn, TimeSeries, PanelMeta) { }); }; + $scope.zoomOut = function(evt) { + $scope.appEvent('zoom-out', evt); + }; + $scope.loadSnapshot = function(snapshotData) { panelHelper.updateTimeRange($scope); $scope.annotationsPromise = $q.when([]);