From: Klaus Weidner Date: Sat, 9 Feb 2013 01:27:44 +0000 (-0800) Subject: Don't redraw graph stack in interactive highlight X-Git-Tag: v1.0.0~84^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=df8e5de276509d4da7a4b461465316120bdd13b6;p=dygraphs.git Don't redraw graph stack in interactive highlight When drawing a single series during interactive highlight, only use the last plotter. Fixes issue 424. --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 89d28b4..de8430c 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -474,7 +474,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function(opt_seriesName, opt_ for (var j = 0; j < sets.length; j++) { setName = setNames[j]; - if (opt_seriesName && setName != opt_seriesName) continue; + if (opt_seriesName && !(is_last && setName == opt_seriesName)) continue; var points = sets[j];