add very basic support for gviz DataTable input
[dygraphs.git] / tests / hourly.html
index 31bd15b..7465e51 100644 (file)
     <script type="text/javascript">
       g = new DateGraph(
             document.getElementById("g"),
-            HourlyData, null, {}
+            function HourlyData() {
+              return "" +
+              "Date,A,B\n" +
+              "2009/07/12 00:00:00,3,4\n" +
+              "2009/07/12 01:00:00,5,6\n" +
+              "2009/07/12 02:00:00,7,6\n" +
+              "2009/07/12 03:00:00,6,5\n" +
+              "2009/07/12 04:00:00,4,7\n" +
+              "2009/07/12 05:00:00,3,6\n" +
+              "2009/07/12 06:00:00,4,6"
+            }, null, {}
           );
 
       gm = new DateGraph(