X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression-addseries.html;h=7c7646d245e38d6b28d5ee5e11a3e05044ce46c0;hb=966ac3fa0de18a7b5ddefe4aba6938d8358ea0cf;hp=183189db6c451af464a36b0681bd9d59d4ffb92e;hpb=b03b9d235686d105e46a4263bcaddf8eee2b9553;p=dygraphs.git diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 183189d..7c7646d 100644 --- a/tests/linear-regression-addseries.html +++ b/tests/linear-regression-addseries.html @@ -1,13 +1,17 @@ + + Linear Regression - - - - + + + @@ -61,6 +65,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;