From: Dan Vanderkam Date: Sun, 13 Dec 2009 23:00:56 +0000 (-0800) Subject: Incorporate patch from Mark Swanson X-Git-Tag: v1.0.0~793 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8b7a0cc362636c7fd76e55f32e74b808886936d0;p=dygraphs.git Incorporate patch from Mark Swanson --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 49dddd4..a848001 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -340,7 +340,7 @@ DygraphCanvasRenderer.prototype._renderAxis = function() { context.lineWidth = this.options.axisLineWidth; if (this.options.drawYAxis) { - if (this.layout.yticks) { + if (this.layout.yticks && this.layout.yticks.length > 0) { for (var i = 0; i < this.layout.yticks.length; i++) { var tick = this.layout.yticks[i]; if (typeof(tick) == "function") return;