Fix problems with multiple null values in a row for stepped graphs.
[dygraphs.git] / dygraph-canvas.js
index 3988b19..d5c812e 100644 (file)
@@ -616,7 +616,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() {
       var point = points[j];
       if (point.name == setName) {
         if (!isOK(point.canvasy)) {
-          if (stepPlot) {
+          if (stepPlot && prevX != null) {
             // Draw a horizontal line to the start of the missing data
             ctx.beginPath();
             ctx.strokeStyle = color;