Merge branch 'master' of http://github.com/adam-p/dygraphs
[dygraphs.git] / tests / linear-regression.html
index e3636c1..9f18d58 100644 (file)
@@ -35,7 +35,8 @@
               {
                 labels: ['X', 'Y1', 'Y2'],
                 underlayCallback: drawLines,
-                drawPoints: true
+                drawPoints: true,
+                strokeWidth: 0.0
               }
           );
 
           var p1 = g.toDomCoords(x1, y1);
           var p2 = g.toDomCoords(x2, y2);
 
-          var color = g.getColors()[i - 1];
+          var c = new RGBColor(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));
+          var color = c.toHex();
           ctx.save();
           ctx.strokeStyle = color;
           ctx.lineWidth = 1.0;