X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression-addseries.html;h=5e7986022ddb4ad990efae93bce3a3c832083e06;hb=66c953562e2255253c3f11eaecad9eff41b11024;hp=ccbc28d2be5a6ad404972014136392ac927110da;hpb=dea29a4d4be3876830153021ed8825745dfcead9;p=dygraphs.git
diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html
index ccbc28d..5e79860 100644
--- a/tests/linear-regression-addseries.html
+++ b/tests/linear-regression-addseries.html
@@ -6,10 +6,12 @@
-
-
-
-
+
+
+
@@ -98,7 +100,7 @@
// Darken the series by 50% to generate its regression.
var label = labels[i] + " Regression";
new_labels.push(label);
- var c = new RGBColor(orig_colors[i - 1]);
+ var c = new RGBColorParser(orig_colors[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));