From: t-lynch Date: Wed, 27 May 2015 20:19:49 +0000 (-0400) Subject: Update dygraph-canvas.js X-Git-Tag: v2.0.0~48^2~1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1b464274a6932a3d92e2e7ada5ee09c7f3afbedc;p=dygraphs.git 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. --- 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);