Add variable declarations for most all graphs and charts.
[dygraphs.git] / tests / x-axis-formatter.html
index b008ad8..d216c97 100644 (file)
           "2009/07/12 06:00:00,4,6"
       }
 
-      new Dygraph(
+      var g1 = new Dygraph(
             document.getElementById("normal"),
             HourlyData()
           );
 
-      new Dygraph(
+      var g2 = new Dygraph(
             document.getElementById("offby2"),
             HourlyData(),
             { 
@@ -54,7 +54,7 @@
               }
             });
 
-      new Dygraph(
+      var g3 = new Dygraph(
             document.getElementById("seconds"),
             HourlyData(),
             {