From a0d847fcdcb13b8dc58fe408e575b93ed363d925 Mon Sep 17 00:00:00 2001 From: wimme Date: Fri, 17 Feb 2012 11:52:40 +0100 Subject: [PATCH] Fix for issue 274: broken step plots --- dygraph-canvas.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 9b2be25..9c2e4da 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -875,6 +875,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { ctx.lineWidth = strokeWidth; if (stepPlot) { this._dashedLine(ctx, prevX, prevY, point.canvasx, prevY, strokePattern); + prevX = point.canvasx; } this._dashedLine(ctx, prevX, prevY, point.canvasx, point.canvasy, strokePattern); prevX = point.canvasx; -- 2.7.4