Merge pull request #123 from kberg/custom-points
[dygraphs.git] / dygraph-canvas.js
index caf4049..10936de 100644 (file)
@@ -881,6 +881,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;