Add variable declarations for most all graphs and charts.
[dygraphs.git] / tests / zero-series.html
index 1f4d0b1..8a94393 100644 (file)
@@ -24,7 +24,7 @@
 
     <div id="graphdiv" style="width:600px; height:300px;"></div>
     <script type="text/javascript">
-      new Dygraph(document.getElementById("graphdiv"),
+      var g = new Dygraph(document.getElementById("graphdiv"),
           document.getElementById("data").innerHTML,
           {
             customBars: true