diff --git a/src/kibana/plugins/discover/components/field_chooser/field_chooser.js b/src/kibana/plugins/discover/components/field_chooser/field_chooser.js index 91b169d35e54..2795d1a3318a 100644 --- a/src/kibana/plugins/discover/components/field_chooser/field_chooser.js +++ b/src/kibana/plugins/discover/components/field_chooser/field_chooser.js @@ -128,7 +128,7 @@ define(function (require) { var type = isGeoPoint ? 'tile_map' : 'histogram'; // If we're visualizing a date field, and our index is time based (and thus has a time filter), // then run a date histogram - if (field.type === 'date' && $scope.indexPattern.timeFieldName) { + if (field.type === 'date' && $scope.indexPattern.timeFieldName === field.name) { agg = { type: 'date_histogram', schema: 'segment',