From f2f24402d8ff4d076a0246e6e6fbb30460f99389 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 30 Nov 2009 11:28:15 -0500 Subject: [PATCH] start removing Color dependence --- dygraph-canvas.js | 6 +++--- tests/grid_dot.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 271e21a..2b649a2 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -177,7 +177,7 @@ DygraphCanvasRenderer = function(dygraph, element, layout, options) { "axisLabelWidth": 50, "drawYGrid": true, "drawXGrid": true, - "gridLineColor": MochiKit.Color.Color.grayColor() + "gridLineColor": 'rgb(0.5,0.5,0.5)' }; MochiKit.Base.update(this.options, options); @@ -281,7 +281,7 @@ DygraphCanvasRenderer.prototype.render = function() { if (this.options.drawYGrid) { var ticks = this.layout.yticks; ctx.save(); - ctx.strokeStyle = this.options.gridLineColor.toRGBString(); + ctx.strokeStyle = this.options.gridLineColor; ctx.lineWidth = this.options.axisLineWidth; for (var i = 0; i < ticks.length; i++) { var x = this.area.x; @@ -297,7 +297,7 @@ DygraphCanvasRenderer.prototype.render = function() { if (this.options.drawXGrid) { var ticks = this.layout.xticks; ctx.save(); - ctx.strokeStyle = this.options.gridLineColor.toRGBString(); + ctx.strokeStyle = this.options.gridLineColor; ctx.lineWidth = this.options.axisLineWidth; for (var i=0; i -- 2.7.4