projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a1d11
)
remove extra logging
author
Dan Vanderkam
<danvdk@gmail.com>
Thu, 16 Sep 2010 00:32:46 +0000
(20:32 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Thu, 16 Sep 2010 00:32:46 +0000
(20:32 -0400)
tests/linear-regression.html
patch
|
blob
|
blame
|
history
diff --git
a/tests/linear-regression.html
b/tests/linear-regression.html
index
22017d3
..
e3636c1
100644
(file)
--- a/
tests/linear-regression.html
+++ b/
tests/linear-regression.html
@@
-66,7
+66,9
@@
var b = (sum_y - a * sum_x) / num;
coeffs[series] = [b, a];
- console.log("coeffs(" + series + "): [" + b + ", " + a + "]");
+ if (console) {
+ console.log("coeffs(" + series + "): [" + b + ", " + a + "]");
+ }
g.updateOptions({}); // forces a redraw.
}
@@
-93,7
+95,6
@@
var p1 = g.toDomCoords(x1, y1);
var p2 = g.toDomCoords(x2, y2);
- console.log("(" + x1 + ", " + y1 + ") - (" + x2 + ", " + y2 + ")");
var color = g.getColors()[i - 1];
ctx.save();
ctx.strokeStyle = color;