X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression.html;h=eb27f904cef646df763a2090ec623da5010636e8;hb=fdcf1ce4073030579009d81f21518520c546e433;hp=6a469b8d8290d4193f083aee07e80d5c3aeb4922;hpb=fb25c8b6d070c7e347b260ef39917220b6159e4e;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;