Don't redraw graph stack in interactive highlight
authorKlaus Weidner <klausw@google.com>
Sat, 9 Feb 2013 01:27:44 +0000 (17:27 -0800)
committerKlaus Weidner <klausw@google.com>
Sat, 9 Feb 2013 01:27:44 +0000 (17:27 -0800)
When drawing a single series during interactive highlight,
only use the last plotter.

Fixes issue 424.

dygraph-canvas.js

index 89d28b4..de8430c 100644 (file)
@@ -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];