mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Merge pull request #8640 from elastic/jasper/backport/8638/5.x
[backport] PR #8638 to 5.x
This commit is contained in:
commit
4048df6991
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ export default function DateHistogramAggType(timefilter, config, Private) {
|
|||
makeLabel: function (agg) {
|
||||
const output = this.params.write(agg);
|
||||
const params = output.params;
|
||||
return params.field + ' per ' + (output.metricScaleText || output.bucketInterval.description);
|
||||
const field = params.field || agg.params.field.displayName || '';
|
||||
return field + ' per ' + (output.metricScaleText || output.bucketInterval.description);
|
||||
},
|
||||
createFilter: createFilter,
|
||||
decorateAggConfig: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue