From 266fead4f138e27b34219fe32092b5cc23915b87 Mon Sep 17 00:00:00 2001 From: Boivin Benoit Date: Thu, 5 Jun 2014 16:46:41 +0200 Subject: [PATCH] Fixed option support --- dygraph-canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4