X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression-addseries.html;h=9a20fe8456fdd39b6a7b21092a7fe7be455d5b85;hb=606568fef36a321148399da4c58a05e2753ac2f9;hp=183189db6c451af464a36b0681bd9d59d4ffb92e;hpb=b03b9d235686d105e46a4263bcaddf8eee2b9553;p=dygraphs.git diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 183189d..9a20fe8 100644 --- a/tests/linear-regression-addseries.html +++ b/tests/linear-regression-addseries.html @@ -1,8 +1,9 @@ + Linear Regression @@ -61,6 +62,10 @@ var y = data[i][series]; if (y == null) continue; + if (y.length == 2) { + // using fractions + y = y[0] / y[1]; + } num++; sum_x += x;