projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of http://github.com/danvk/dygraphs
[dygraphs.git]
/
tests
/
linear-regression-addseries.html
diff --git
a/tests/linear-regression-addseries.html
b/tests/linear-regression-addseries.html
index
2a746b5
..
3fd3a85
100644
(file)
--- a/
tests/linear-regression-addseries.html
+++ b/
tests/linear-regression-addseries.html
@@
-61,6
+61,10
@@
var y = data[i][series];
if (y == null) continue;
var y = data[i][series];
if (y == null) continue;
+ if (y.length == 2) {
+ // using fractions
+ y = y[0] / y[1];
+ }
num++;
sum_x += x;
num++;
sum_x += x;