|
@@ -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', [])
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
})
|
|
})
|