From: Boivin Benoit Date: Thu, 5 Jun 2014 14:46:41 +0000 (+0200) Subject: Fixed option support X-Git-Tag: v1.1.0~60^2^2~2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=dab1df042582391f79e784d42b6c367c787d5e28;p=dygraphs.git Fixed option support --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 1a8a09d..b7a49a5 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -672,7 +672,6 @@ DygraphCanvasRenderer._fillPlotter = function(e) { var fillAlpha = g.getNumericOption('fillAlpha'); var stackedGraph = g.getBooleanOption("stackedGraph"); - var fillStepPlot = g.getBooleanOption("stepPlot") && g.getBooleanOption("fillStepPlot"); var colors = g.getColors(); // For stacked graphs, track the baseline for filling. @@ -692,6 +691,7 @@ DygraphCanvasRenderer._fillPlotter = function(e) { if (!g.getBooleanOption('fillGraph', setName)) continue; var stepPlot = g.getBooleanOption('stepPlot', setName); + var fillStepPlot = stepPlot && g.getBooleanOption("fillStepPlot", setName); var color = colors[setIdx]; var axis = g.axisPropertiesForSeries(setName); var axisY = 1.0 + axis.minyval * axis.yscale;