BUG FIX: Fixed indentation in respect to the jslint rules.
[dygraphs.git] / dygraph-canvas.js
index 89d28b4..6567808 100644 (file)
@@ -261,7 +261,12 @@ DygraphCanvasRenderer._drawStyledLine = function(e,
     drawPointCallback, pointSize) {
   var g = e.dygraph;
   // TODO(konigsberg): Compute attributes outside this method call.
-  var stepPlot = g.getOption("stepPlot");  // TODO(danvk): per-series
+  var stepPlot = g.getOption("stepPlot");
+  var seriesStepPlot = g.getOption("stepPlot",e.setName);
+  if(seriesStepPlot !== undefined) {
+    stepPlot = seriesStepPlot;
+  }
+
   if (!Dygraph.isArrayLike(strokePattern)) {
     strokePattern = null;
   }