5 <script type=
"text/javascript" src=
"excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../dygraph-combined.js"></script>
8 <script type=
"text/javascript" src=
"../dygraph.js"></script>
9 <script type=
"text/javascript" src=
"data.js"></script>
13 <div id=
"g" style=
"width:600px; height:300px;"></div>
16 <div id=
"gm" style=
"width:600px; height:300px;"></div>
18 <script type=
"text/javascript">
20 document.getElementById(
"g"),
21 function HourlyData() {
24 "2009/07/12 00:00:00,3,4\n" +
25 "2009/07/12 01:00:00,5,6\n" +
26 "2009/07/12 02:00:00,7,6\n" +
27 "2009/07/12 03:00:00,6,5\n" +
28 "2009/07/12 04:00:00,4,7\n" +
29 "2009/07/12 05:00:00,3,6\n" +
30 "2009/07/12 06:00:00,4,6"
35 document.getElementById(
"gm"),
37 var ret =
"Date,Hours,Minutes\n";
38 var zp = function(x) { if (x
<10) return
"0"+x; else return
""+x;};
39 for (var h =
0; h <
48; h++) {
40 for (var m =
0; m <
60; m++) {
41 ret +=
"2008/07/12 " + zp(h) +
":" + zp(m) +
42 "," + h +
"," + m +
"\n";