From: eichsjul Date: Thu, 31 Jan 2013 13:32:58 +0000 (+0100) Subject: FEATURE: Added support for stepPlot per-series. X-Git-Tag: v1.0.0~100^2~6 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2f56cd46850c9ba272029038ded19adfa5ba2f3b;p=dygraphs.git FEATURE: Added support for stepPlot per-series. --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 89d28b4..2573147 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -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; }