Merge pull request #3443 from panda01/fix/3441/visualizeTimeFromDiscover
Fixed Visualize Time from Discover
This commit is contained in:
commit
681f6ef6ae
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue