From 880a574fb8382056ec02eb3cb6f4ce1e35463c8f Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 20 Oct 2010 13:05:01 -0400 Subject: [PATCH 1/1] demo works in FF & Chrome --- dygraph-canvas.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 72716ba..263cf5c 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -402,7 +402,8 @@ DygraphCanvasRenderer.prototype.render = function() { ctx.strokeStyle = this.options.gridLineColor; ctx.lineWidth = this.options.axisLineWidth; for (var i = 0; i < ticks.length; i++) { - if (ticks[i][0] != 0) continue; // TODO(danvk): per-axis property + // TODO(danvk): allow secondary axes to draw a grid, too. + if (ticks[i][0] != 0) continue; var x = this.area.x; var y = this.area.y + ticks[i][1] * this.area.h; ctx.beginPath(); @@ -419,10 +420,10 @@ DygraphCanvasRenderer.prototype.render = function() { ctx.strokeStyle = this.options.gridLineColor; ctx.lineWidth = this.options.axisLineWidth; for (var i=0; i