mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #3581 from bergquist/zoomout_on_doubleclick
Zoom out on double click in graphs
This commit is contained in:
commit
3dc3d363fd
@ -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>
|
||||||
|
@ -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([]);
|
||||||
|
Loading…
Reference in New Issue
Block a user