projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4cee28
)
FEATURE: Added support for stepPlot per-series.
author
eichsjul
<julian.eichstaedt@ch.sauter-bc.com>
Thu, 31 Jan 2013 13:32:58 +0000
(14:32 +0100)
committer
eichsjul
<julian.eichstaedt@ch.sauter-bc.com>
Thu, 7 Feb 2013 10:09:32 +0000
(11:09 +0100)
dygraph-canvas.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
89d28b4
..
2573147
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-261,7
+261,12
@@
DygraphCanvasRenderer._drawStyledLine = function(e,
drawPointCallback, pointSize) {
var g = e.dygraph;
// TODO(konigsberg): Compute attributes outside this method call.
- var stepPlot = g.getOption("stepPlot"); // TODO(danvk): per-series
+ var stepPlot = g.getOption("stepPlot");
+ var seriesStepPlot = g.getOption("stepPlot",e.setName);
+ if(seriesStepPlot !== undefined){
+ stepPlot = seriesStepPlot;
+ }
+
if (!Dygraph.isArrayLike(strokePattern)) {
strokePattern = null;
}