projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
push flashcanvas to web
[dygraphs.git]
/
tests
/
linear-regression-addseries.html
diff --git
a/tests/linear-regression-addseries.html
b/tests/linear-regression-addseries.html
index
2a746b5
..
9a20fe8
100644
(file)
--- a/
tests/linear-regression-addseries.html
+++ b/
tests/linear-regression-addseries.html
@@
-1,3
+1,4
@@
+<!DOCTYPE html>
<html>
<head>
<title>Linear Regression</title>
<html>
<head>
<title>Linear Regression</title>
@@
-61,6
+62,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;