From 34de8b760a9e1cf72f3a8fdfa66163a7fad4c403 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 20 Oct 2010 12:50:27 -0400 Subject: [PATCH] note --- dygraph-canvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 6a7ba5f..72716ba 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -308,7 +308,7 @@ DygraphCanvasRenderer = function(dygraph, element, layout, options) { this.area.w -= (this.options.yAxisLabelWidth + 2 * this.options.axisTickSize); } else if (this.dygraph_.numAxes() > 2) { this.dygraph_.error("Only two y-axes are supported at this time. (Trying " + - "to use " + this.layout.yAxes.length + ")"); + "to use " + this.dygraph_.numAxes() + ")"); } this.container.style.position = "relative"; @@ -422,7 +422,7 @@ DygraphCanvasRenderer.prototype.render = function() { var x = this.area.x + ticks[i][1] * this.area.w; var y = this.area.y + this.area.h; ctx.beginPath(); - ctx.moveTo(x, y); + ctx.moveTo(x, y); // x == NaN ctx.lineTo(x, this.area.y); ctx.closePath(); ctx.stroke(); -- 2.7.4