X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Flinear-regression-addseries.html;h=5e7986022ddb4ad990efae93bce3a3c832083e06;hb=e03f3a93d45459a9748050d1d38149494975b3d9;hp=7c7646d245e38d6b28d5ee5e11a3e05044ce46c0;hpb=bbfb84f2a5e0fbb5259fab16f0785a5806c5bf8d;p=dygraphs.git diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 7c7646d..5e79860 100644 --- a/tests/linear-regression-addseries.html +++ b/tests/linear-regression-addseries.html @@ -100,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));