one more small fix from Paul
authorDan Vanderkam <dan@dygraphs.com>
Tue, 27 Dec 2011 16:05:45 +0000 (11:05 -0500)
committerDan Vanderkam <dan@dygraphs.com>
Tue, 27 Dec 2011 16:05:45 +0000 (11:05 -0500)
dygraph-range-selector.js

index 2c55194..fe69864 100644 (file)
@@ -477,7 +477,7 @@ DygraphRangeSelector.prototype.computeCombinedSeriesAndLimits_ = function() {
       if (mutipleValues) {
         sum = [];
         count = [];
-        for (k = 0; k < data[0][1].length; k++) {
+        for (k = 0; k < data[i][1].length; k++) {
           sum.push(0);
           count.push(0);
         }