From: Dan Vanderkam Date: Wed, 20 Oct 2010 16:50:27 +0000 (-0400) Subject: note X-Git-Tag: v1.0.0~622^2~12 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;ds=sidebyside;h=34de8b760a9e1cf72f3a8fdfa66163a7fad4c403;p=dygraphs.git note --- 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();