X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=tests%2Flinear-regression-fractions.html;h=253fa6046a0d46a592511f9d3cae0fd74e61ea9a;hb=84074adc20801653473a750a756b6b8e6d0cfc28;hp=74be0b921e456b0a61c5034b08dcdc3a3d344e4d;hpb=dea29a4d4be3876830153021ed8825745dfcead9;p=dygraphs.git
diff --git a/tests/linear-regression-fractions.html b/tests/linear-regression-fractions.html
index 74be0b9..253fa60 100644
--- a/tests/linear-regression-fractions.html
+++ b/tests/linear-regression-fractions.html
@@ -6,10 +6,12 @@
-
-
-
-
+
+
+
@@ -108,7 +110,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));