projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
minor tweaks to jeremy's change
[dygraphs.git]
/
tests
/
linear-regression.html
diff --git
a/tests/linear-regression.html
b/tests/linear-regression.html
index
6a469b8
..
eb27f90
100644
(file)
--- 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;