add HTML5 doctype to all tests
[dygraphs.git] / tests / daylight-savings.html
CommitLineData
54425b14 1<!DOCTYPE html>
d1bce5a0
DV
2<html>
3 <head>
4 <title>Daylight Savings</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 </head>
13 <body>
14 <h2>DST</h2>
15 <p>This tests that tick marks don't break when the axis crosses into
16 daylight savings time.</p>
17
18 <div id="demodiv"></div>
19
35a3b119
DV
20 <p>The tick marks should all be on day boundaries or nice hours (6, 12, 18),
21 rather than on odd time boundaries like 5, 11, 17 and 23.</p>
22
d1bce5a0
DV
23 <script type="text/javascript">
24 g = new Dygraph(
25 document.getElementById("demodiv"),
26"Date/Time,Purchases\n" +
27"2010-11-05 00:00:00,167082\n" +
28"2010-11-06 00:00:00,168571\n" +
29"2010-11-07 00:00:00,177796\n" +
30"2010-11-08 00:00:00,165587\n" +
35a3b119
DV
31"2010-11-09 00:00:00,164380\n",
32 { width: 1024 }
d1bce5a0
DV
33 );
34 </script>
35</body>
36</html>