From: eichsjul Date: Thu, 31 Jan 2013 15:42:15 +0000 (+0100) Subject: FEATURE: Added stepPlot option per series for all plotters. X-Git-Tag: v1.0.0~100^2~4 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0ce5b19b6346c9e55494997c06f460fedcd48b11;p=dygraphs.git FEATURE: Added stepPlot option per series for all plotters. --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 6567808..5305ded 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -261,11 +261,7 @@ DygraphCanvasRenderer._drawStyledLine = function(e, drawPointCallback, pointSize) { var g = e.dygraph; // TODO(konigsberg): Compute attributes outside this method call. - var stepPlot = g.getOption("stepPlot"); - var seriesStepPlot = g.getOption("stepPlot",e.setName); - if(seriesStepPlot !== undefined) { - stepPlot = seriesStepPlot; - } + var stepPlot = g.getOption("stepPlot", e.setName); if (!Dygraph.isArrayLike(strokePattern)) { strokePattern = null; @@ -596,7 +592,7 @@ DygraphCanvasRenderer._errorPlotter = function(e) { var ctx = e.drawingContext; var color = e.color; var fillAlpha = g.getOption('fillAlpha', setName); - var stepPlot = g.getOption('stepPlot'); // TODO(danvk): per-series + var stepPlot = g.getOption("stepPlot", setName); var points = e.points; var iter = Dygraph.createIterator(points, 0, points.length, @@ -696,7 +692,7 @@ DygraphCanvasRenderer._fillPlotter = function(e) { var setCount = sets.length; var fillAlpha = g.getOption('fillAlpha'); - var stepPlot = g.getOption('stepPlot'); + var stepPlot = g.getOption('stepPlot', e.setName); var stackedGraph = g.getOption("stackedGraph"); var colors = g.getColors();