From c1dbeb10b48e0f805be2cef09efebf5e35218c1a Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 18 Oct 2010 14:50:11 -0400 Subject: [PATCH 1/1] draw secondary axis line --- dygraph-canvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- 2.7.4