Default date range aggregation field to index pattern time field
This commit is contained in:
parent
4a2985aac4
commit
be624ad300
|
@ -15,7 +15,10 @@ define(function (require) {
|
|||
},
|
||||
params: [{
|
||||
name: 'field',
|
||||
filterFieldTypes: 'date'
|
||||
filterFieldTypes: 'date',
|
||||
default: function (agg) {
|
||||
return agg.vis.indexPattern.timeFieldName;
|
||||
},
|
||||
}, {
|
||||
name: 'ranges',
|
||||
default: [{
|
||||
|
|
Loading…
Reference in a new issue