fixed option for jsonarray provider

This commit is contained in:
javi 2013-09-02 15:16:34 +02:00
parent 0668ff2a67
commit 803f00117c

View File

@ -74,7 +74,7 @@
o.times.push(row.data[HEADER_SIZE + s]); o.times.push(row.data[HEADER_SIZE + s]);
o.values.push(row.data[HEADER_SIZE + o.valuesCount + s]); o.values.push(row.data[HEADER_SIZE + o.valuesCount + s]);
} }
if(self.options.cummulative) { if(self.options.cumulative) {
for (var s = 1; s < o.valuesCount; ++s) { for (var s = 1; s < o.valuesCount; ++s) {
o.values[s] += o.values[s - 1]; o.values[s] += o.values[s - 1];
} }