Update synchronize gallery demo
[dygraphs.git] / gallery / range-selector.js
index 57ac71b..3b13ebb 100644 (file)
@@ -1,3 +1,5 @@
+/*global Gallery,Dygraph,data */
+/*global data_temp */
 Gallery.register(
   'range-selector',
   {
@@ -6,13 +8,13 @@ Gallery.register(
     setup: function(parent) {
       parent.innerHTML = [
           "<p>No roll period.</p>",
-          "<div id='noroll' style='width:800px; height:320px;'></div>",
+          "<div id='noroll' style='width:600px; height:300px;'></div>",
           "",
           "<p>Roll period of 14 timesteps, custom range selector height and plot color.</p>",
-          "<div id='roll14' style='width:800px; height:320px;'></div>"].join("\n");
+          "<div id='roll14' style='width:600px; height:300px;'></div>"].join("\n");
     },
     run: function() {
-      g1 = new Dygraph(
+      new Dygraph(
           document.getElementById("noroll"),
           data_temp,
           {
@@ -24,7 +26,7 @@ Gallery.register(
             showRangeSelector: true
           }
       );
-      g2 = new Dygraph(
+      new Dygraph(
           document.getElementById("roll14"),
           data_temp,
           {