Add variable declarations for most all graphs and charts.
[dygraphs.git] / tests / gviz.html
index 8ff321b..707f6ac 100644 (file)
         new google.visualization.LineChart(
             document.getElementById('gviz')).draw(data, null);
 
-        new Dygraph.GVizChart(
+        var chart1 = new Dygraph.GVizChart(
             document.getElementById('dygraphs')).draw(data, {
             });
 
         data = createDataTable('datetime');
-        new Dygraph.GVizChart(
+        var chart2 = new Dygraph.GVizChart(
             document.getElementById('dygraphs_datetime')).draw(data, {
             });