From 1b464274a6932a3d92e2e7ada5ee09c7f3afbedc Mon Sep 17 00:00:00 2001 From: t-lynch Date: Wed, 27 May 2015 16:19:49 -0400 Subject: [PATCH] Update dygraph-canvas.js Changed the way that the fillAlpha option is processes in the _fillPlotter function in order to allow for per-series configuration. Previously when fillGraph was set, only the global option was recognized. --- src/dygraph-canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dygraph-canvas.js b/src/dygraph-canvas.js index a547e05..aed387b 100644 --- a/src/dygraph-canvas.js +++ b/src/dygraph-canvas.js @@ -707,7 +707,6 @@ DygraphCanvasRenderer._fillPlotter = function(e) { var sets = e.allSeriesPoints; var setCount = sets.length; - var fillAlpha = g.getNumericOption('fillAlpha'); var stackedGraph = g.getBooleanOption("stackedGraph"); var colors = g.getColors(); @@ -739,6 +738,7 @@ DygraphCanvasRenderer._fillPlotter = function(e) { var setName = setNames[setIdx]; if (!g.getBooleanOption('fillGraph', setName)) continue; + var fillAlpha = g.getNumericOption('fillAlpha', setName); var stepPlot = g.getBooleanOption('stepPlot', setName); var color = colors[setIdx]; var axis = g.axisPropertiesForSeries(setName); -- 2.7.4