FEATURE: Added support for stepPlot per-series.
authoreichsjul <julian.eichstaedt@ch.sauter-bc.com>
Thu, 31 Jan 2013 13:32:58 +0000 (14:32 +0100)
committereichsjul <julian.eichstaedt@ch.sauter-bc.com>
Thu, 7 Feb 2013 10:09:32 +0000 (11:09 +0100)
dygraph-canvas.js

index 89d28b4..2573147 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;
   }