fractions regression
[dygraphs.git] / tests / linear-regression-addseries.html
index 2a746b5..3fd3a85 100644 (file)
 
           var y = data[i][series];
           if (y == null) continue;
+          if (y.length == 2) {
+            // using fractions
+            y = y[0] / y[1];
+          }
 
           num++;
           sum_x += x;