fix Ops Manager Feed Activity charts issue with newly added min,max properties
@@ -82,6 +82,7 @@ angular.module(moduleName).service('Nvd3ChartService', ["$timeout",function ($ti
len = keys.length;
keys.sort(); //sort all the dates
+ if(angular.isDefined(minTime) && angular.isDefined(maxTime) && angular.isDefined(maxDataPoints)) {
//add missing data points
var timeInterval = (maxTime - minTime) / maxDataPoints;
var doubleTimeInterval = timeInterval * 2;
@@ -112,6 +113,7 @@ angular.module(moduleName).service('Nvd3ChartService', ["$timeout",function ($ti
keys = Object.keys(dateMap);
len = keys.length;
keys.sort(); //sort again after adding missing time points
+ }
angular.forEach(dataMap, function (labelCounts, label) {
// //fill in any empty dates with 0 values
