|
@@ -30,6 +30,7 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
|
|
|
$scope.panelMeta.addEditorTab('Axes & Grid', 'app/panels/graph/axisEditor.html');
|
|
$scope.panelMeta.addEditorTab('Axes & Grid', 'app/panels/graph/axisEditor.html');
|
|
|
$scope.panelMeta.addEditorTab('Display Styles', 'app/panels/graph/styleEditor.html');
|
|
$scope.panelMeta.addEditorTab('Display Styles', 'app/panels/graph/styleEditor.html');
|
|
|
|
|
|
|
|
|
|
+ $scope.panelMeta.addExtendedMenuItem('Export CSV', '', 'exportCsv()');
|
|
|
$scope.panelMeta.addExtendedMenuItem('Toggle legend', '', 'toggleLegend()');
|
|
$scope.panelMeta.addExtendedMenuItem('Toggle legend', '', 'toggleLegend()');
|
|
|
|
|
|
|
|
// Set and populate defaults
|
|
// Set and populate defaults
|
|
@@ -283,6 +284,10 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
|
|
|
$scope.get_data();
|
|
$scope.get_data();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ $scope.exportCsv = function() {
|
|
|
|
|
+ kbn.exportSeriesListToCsv($scope.seriesList);
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
panelSrv.init($scope);
|
|
panelSrv.init($scope);
|
|
|
});
|
|
});
|
|
|
|
|
|