X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Flinear-regression.html;h=eb27f904cef646df763a2090ec623da5010636e8;hb=176c94a4b3323501cd4a178bdf324c76b68b86ba;hp=6a469b8d8290d4193f083aee07e80d5c3aeb4922;hpb=a2b2c3a13b968bf10c9dbea58683b0f51011b547;p=dygraphs.git diff --git a/tests/linear-regression.html b/tests/linear-regression.html index 6a469b8..eb27f90 100644 --- a/tests/linear-regression.html +++ b/tests/linear-regression.html @@ -55,6 +55,10 @@ var y = g.getValue(i, series); if (y == null) continue; + if (y.length == 2) { + // using fractions + y = y[0] / y[1]; + } num++; sum_x += x;