projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecf84f5
)
Update dygraph-canvas.js
author
t-lynch
<t-lynch@users.noreply.github.com>
Wed, 27 May 2015 20:19:49 +0000
(16:19 -0400)
committer
t-lynch
<t-lynch@users.noreply.github.com>
Wed, 27 May 2015 20:19:49 +0000
(16:19 -0400)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/dygraph-canvas.js
b/src/dygraph-canvas.js
index
a547e05
..
aed387b
100644
(file)
--- 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);