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