mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
replace _all with Count for hierarchical data
This commit is contained in:
parent
bbfba96c41
commit
8a03f4fd38
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ define(function (require) {
|
|||
|
||||
// If buckets is falsy then we should just return the aggs
|
||||
if (!buckets) {
|
||||
var label = 'Count';
|
||||
var value = resp.aggregations
|
||||
&& resp.aggregations[metric.id]
|
||||
&& resp.aggregations[metric.id].value
|
||||
|
@ -38,11 +39,11 @@ define(function (require) {
|
|||
return {
|
||||
hits: resp.hits.total,
|
||||
raw: raw,
|
||||
names: ['_all'],
|
||||
names: [label],
|
||||
tooltipFormatter: tooltipFormatter(raw.columns),
|
||||
slices: {
|
||||
children: [
|
||||
{ name: '_all', size: value }
|
||||
{ name: label, size: value }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue