Fix for histogram without time filter

This commit is contained in:
Rashid Khan 2013-08-07 12:34:05 -07:00
parent a6921ab2a7
commit a118cf42ae

View File

@ -327,8 +327,8 @@ angular.module('kibana.histogram', [])
timezone: scope.panel.timezone,
show: scope.panel['x-axis'],
mode: "time",
min: scope.range.from.getTime(),
max: scope.range.to.getTime(),
min: _.isUndefined(scope.range.from) ? null : scope.range.from.getTime(),
max: _.isUndefined(scope.range.to) ? null : scope.range.to.getTime(),
timeformat: time_format(scope.panel.interval),
label: "Datetime",
},