X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=tests%2Flinear-regression.html;h=d7c3700a0308f627dcef764e987778acedf7a4df;hb=84074adc20801653473a750a756b6b8e6d0cfc28;hp=95177e3776f1af4bc7af1e5b83fd2f578558762e;hpb=44f29e932dcbe83c1bfaebb8735579392e27a5df;p=dygraphs.git
diff --git a/tests/linear-regression.html b/tests/linear-regression.html
index 95177e3..d7c3700 100644
--- a/tests/linear-regression.html
+++ b/tests/linear-regression.html
@@ -6,10 +6,12 @@
-
-
-
-
+
+
+
@@ -102,7 +104,7 @@
var p1 = g.toDomCoords(x1, y1);
var p2 = g.toDomCoords(x2, y2);
- var c = new RGBColor(g.getColors()[i - 1]);
+ var c = new RGBColorParser(g.getColors()[i - 1]);
c.r = Math.floor(255 - 0.5 * (255 - c.r));
c.g = Math.floor(255 - 0.5 * (255 - c.g));
c.b = Math.floor(255 - 0.5 * (255 - c.b));