From: wimme Date: Fri, 17 Feb 2012 10:52:40 +0000 (+0100) Subject: Fix for issue 274: broken step plots X-Git-Tag: v1.0.0~325^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a0d847fcdcb13b8dc58fe408e575b93ed363d925;p=dygraphs.git Fix for issue 274: broken step plots --- 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;