From: Dan Vanderkam Date: Mon, 18 Oct 2010 18:50:11 +0000 (-0400) Subject: draw secondary axis line X-Git-Tag: v1.0.0~622^2~14 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c1dbeb10b48e0f805be2cef09efebf5e35218c1a;p=dygraphs.git draw secondary axis line --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 76f0b44..6a7ba5f 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -521,6 +521,14 @@ DygraphCanvasRenderer.prototype._renderAxis = function() { context.lineTo(this.area.x, this.area.y + this.area.h); context.closePath(); context.stroke(); + + if (this.dygraph_.numAxes() == 2) { + context.beginPath(); + context.moveTo(this.area.x + this.area.w, this.area.y); + context.lineTo(this.area.x + this.area.w, this.area.y + this.area.h); + context.closePath(); + context.stroke(); + } } if (this.options.drawXAxis) {