From: Dan Vanderkam Date: Mon, 30 Nov 2009 16:28:15 +0000 (-0500) Subject: start removing Color dependence X-Git-Tag: v1.0.0~841 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=f2f24402d8ff4d076a0246e6e6fbb30460f99389;p=dygraphs.git start removing Color dependence --- 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