diff --git a/js/models.js b/js/models.js index 3efda47..2e51657 100644 --- a/js/models.js +++ b/js/models.js @@ -451,7 +451,7 @@ Series.prototype.mapReduce = function(mapFn, reduceFn) { for (var j = 0; j < childValues[0].length; j++) { reducedValues.push(childValues.reduce(function(accum, curr, i, arr) { return reduceFn(accum, arr[i][j]); - }, childValues[0][j])); + }, 0)); } }