fixed cumulative

This commit is contained in:
javi 2013-11-21 13:21:48 +01:00
parent eb3ea211a9
commit 3de6faba75

View File

@ -121,7 +121,7 @@
// extend the latest to the end
if(this.options.cumulative) {
var lastDateSlot = dates[dates.length - 1];
for (var j = lastDateSlot; j <= maxDateSlots; ++j) {
for (var j = lastDateSlot + 1; j <= maxDateSlots; ++j) {
var rr = rowsPerSlot[j] || (rowsPerSlot[j] = []);
rr.push([r, prev_val]);
}