Commit e793ac4b by Rashid Khan

fixed file loading

parent 79dbffc8
...@@ -112,7 +112,7 @@ angular.module('kibana.dashcontrol', []) ...@@ -112,7 +112,7 @@ angular.module('kibana.dashcontrol', [])
$scope.file_load = function(file) { $scope.file_load = function(file) {
$http({ $http({
url: "dashboards/default", url: "dashboards/"+file,
method: "GET", method: "GET",
}).success(function(data, status, headers, config) { }).success(function(data, status, headers, config) {
var dashboard = data var dashboard = data
......
...@@ -246,7 +246,7 @@ angular.module('kibana.pie', []) ...@@ -246,7 +246,7 @@ angular.module('kibana.pie', [])
show: scope.panel.labels, show: scope.panel.labels,
radius: 2/3, radius: 2/3,
formatter: function(label, series){ formatter: function(label, series){
return '<div style="font-size:8pt;text-align:center;padding:2px;color:white;">'+ return '<div ng-click="build_search(panel.query.field,\''+label+'\') "style="font-size:8pt;text-align:center;padding:2px;color:white;">'+
label+'<br/>'+Math.round(series.percent)+'%</div>'; label+'<br/>'+Math.round(series.percent)+'%</div>';
}, },
threshold: 0.1 threshold: 0.1
...@@ -311,7 +311,6 @@ angular.module('kibana.pie', []) ...@@ -311,7 +311,6 @@ angular.module('kibana.pie', [])
} }
}); });
} }
}; };
}) })
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment