X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=65678083c63ab7e202b390142c4d6e118ea64296;hb=de9a8181064aa767e1c70c31a0027a0324cc33c6;hp=89d28b47fb2705210407391f0464c46827a27885;hpb=0cd1ad15aefb3bd6507886e4cbba0d7587a56610;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 89d28b4..6567808 100644 --- 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; }