fixed file loading
This commit is contained in:
@@ -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', [])
|
|||||||
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', [])
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user