Merge pull request #3581 from bergquist/zoomout_on_doubleclick

Zoom out on double click in graphs
This commit is contained in:
Carl Bergquist 2015-12-22 10:04:28 +01:00
commit 3dc3d363fd
2 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<span class="small" ng-show="datapointsOutside">Datapoints outside time range <tip>Can be caused by timezone mismatch between browser and graphite server</tip></span> <span class="small" ng-show="datapointsOutside">Datapoints outside time range <tip>Can be caused by timezone mismatch between browser and graphite server</tip></span>
</div> </div>
<div grafana-graph class="histogram-chart"> <div grafana-graph class="histogram-chart" ng-dblclick="zoomOut()">
</div> </div>
</div> </div>

View File

@ -138,6 +138,10 @@ function (angular, _, moment, kbn, TimeSeries, PanelMeta) {
}); });
}; };
$scope.zoomOut = function(evt) {
$scope.appEvent('zoom-out', evt);
};
$scope.loadSnapshot = function(snapshotData) { $scope.loadSnapshot = function(snapshotData) {
panelHelper.updateTimeRange($scope); panelHelper.updateTimeRange($scope);
$scope.annotationsPromise = $q.when([]); $scope.annotationsPromise = $q.when([]);