add HTML5 doctype to all tests
[dygraphs.git] / tests / linear-regression-addseries.html
index 2a746b5..9a20fe8 100644 (file)
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Linear Regression</title>
 
           var y = data[i][series];
           if (y == null) continue;
+          if (y.length == 2) {
+            // using fractions
+            y = y[0] / y[1];
+          }
 
           num++;
           sum_x += x;