X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression-addseries.html;h=7c7646d245e38d6b28d5ee5e11a3e05044ce46c0;hb=966ac3fa0de18a7b5ddefe4aba6938d8358ea0cf;hp=2a746b5e2d5e600bd38b985f5ff2ceeae389fa7a;hpb=1f75a05ce24d88587871a7305f1982010577cd33;p=dygraphs.git diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 2a746b5..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;