draw secondary axis line
authorDan Vanderkam <danvdk@gmail.com>
Mon, 18 Oct 2010 18:50:11 +0000 (14:50 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Mon, 18 Oct 2010 18:50:11 +0000 (14:50 -0400)
dygraph-canvas.js

index 76f0b44..6a7ba5f 100644 (file)
@@ -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) {