reset linear-regression
[dygraphs.git] / tests / linear-regression.html
index 6a469b8..eb27f90 100644 (file)
 
           var y = g.getValue(i, series);
           if (y == null) continue;
+          if (y.length == 2) {
+            // using fractions
+            y = y[0] / y[1];
+          }
 
           num++;
           sum_x += x;