Legend follows highlighted points
[dygraphs.git] / gallery / synchronize.js
index 9675464..ae92efb 100644 (file)
@@ -1,4 +1,6 @@
-// Use this as a template for new Gallery entries.
+/*global Gallery,Dygraph,data */
+/*jshint loopfunc:true */
+/*global NoisyData */
 Gallery.register(
   'synchronize',
   {
@@ -16,9 +18,8 @@ Gallery.register(
         "<td><div id='div4' style='width:500px; height:300px;'></div></td></table>"].join("\n");
     },
     run: function() {
-      gs = [];
+      var gs = [];
       var blockRedraw = false;
-      var initialized = false;
       for (var i = 1; i <= 4; i++) {
         gs.push(
           new Dygraph(